Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# dynamic object get value

var nameOfProperty = "property1";
var propertyInfo = myObject.GetType().GetProperty(nameOfProperty);
var value = propertyInfo.GetValue(myObject, null);
 
PREVIOUS NEXT
Tagged: #dynamic #object
ADD COMMENT
Topic
Name
2+8 =