Skip to content

Write object initialization code for c# object, not expression (for more general application to c# projects) #76

@jeanluc33

Description

@jeanluc33

I notice in the ExportGenerator.cs class there is a method, GenerateText(Expression expression, ExpressionSourceType source) that can generate object initialization code from an expression.

Is there a straightforward way to do this from a c# object, like this: GenerateText(Object object, ExpressionSourceType source)

In this way, assuming dependencies could be limited, ObjectExporter could be highly useful as a nuget package for inclusion in many projects where code generation from an object (state) is required.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions