Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateClass Equivalent? #36

Closed
steamrolla opened this issue Jul 13, 2016 · 4 comments
Closed

CreateClass Equivalent? #36

steamrolla opened this issue Jul 13, 2016 · 4 comments
Assignees
Labels

Comments

@steamrolla
Copy link

steamrolla commented Jul 13, 2016

I'm porting some code over from big boy .NET to Core and came across a reference to the following:
https://github.com/kahanu/System.Linq.Dynamic/wiki/Dynamic-Expressions#dynamic-data-classes

I don't see an equivalent in this library, but the readme makes it seem like it should be here. Any help? Am I blind?

@steamrolla steamrolla changed the title CreateClass Equivalenet? CreateClass Equivalent? Jul 13, 2016
@StefH
Copy link
Collaborator

StefH commented Jul 14, 2016

That's a nice WIKI page, I will copy that WIKI also into this project but I'll have to modify some text.

The code you are looking for is:
var type = DynamicClassFactory.CreateType([NotNull] IList<DynamicProperty> properties, bool createParameterCtor = true)

However, at this moment this class is internal so you cannot use it yet, I'll try to fix this.

@StefH StefH self-assigned this Jul 14, 2016
@StefH StefH added the feature label Jul 14, 2016
StefH added a commit that referenced this issue Jul 15, 2016
@StefH
Copy link
Collaborator

StefH commented Jul 15, 2016

@StefH
Copy link
Collaborator

StefH commented Jul 24, 2016

@steamrolla ; can you check if this fix is ok ?

@StefH
Copy link
Collaborator

StefH commented Aug 22, 2016

Closing issue.

@StefH StefH closed this as completed Aug 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants