CsharpExpressionDumper:从对象实例生成C#初始化代码

时间:2024-04-11 14:00:38
【文件属性】:

文件名称:CsharpExpressionDumper:从对象实例生成C#初始化代码

文件大小:38KB

文件格式:ZIP

更新时间:2024-04-11 14:00:38

C#

CsharpExpressionDumper 从对象实例生成C#初始化代码 示例:var input = new {Property1 =“ test”,Property2 = 2}; var dumper = new CsharpExpressionDumper(Default.ObjectHandlers,customTypeHandlers.Concat(Default.CustomTypeHandlers),Default.TypeNameFormatters,Default.ConstructorResolvers,Default.ReadOnlyPropertyResolvers); var sourceCode = dumper.Dump(input,input.GetType());


【文件预览】:
CsharpExpressionDumper-main
----sonar-project.properties(255B)
----CsharpExpressionDumper()
--------CsharpExpressionDumper.cs(4KB)
--------TypeNameFormatters()
--------CsharpExpressionDumperCallbacks()
--------CsharpExpressionDumper.csproj(138B)
--------Default.cs(3KB)
--------ReadOnlyPropertyResolvers()
--------ObjectHandlers()
--------Extensions()
--------Abstractions()
--------ConstructorResolvers()
--------CustomTypeHandlers()
----.github()
--------workflows()
----CsharpExpressionDumper.sln(2KB)
----README.md(437B)
----CsharpExpressionDumper.Tests()
--------ObjectHandlers()
--------TestFixtures()
--------CsharpExpressionDumperTests.cs(33KB)
--------CsharpExpressionDumper.Tests.csproj(1KB)
----.gitignore(6KB)

网友评论