Skip to content

Instantly share code, notes, and snippets.

@leomao10
Created November 9, 2010 02:29
Show Gist options
  • Save leomao10/668614 to your computer and use it in GitHub Desktop.
Save leomao10/668614 to your computer and use it in GitHub Desktop.
How to Construct a class with Reflection
value = (IZType)property.PropertyType.GetConstructor(new Type[] { typeof(object) }).Invoke(new object[] { value });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment