Answers for "how to get value from object in c#"

C#
0

how to get value from object in c#

var nameOfProperty = "property1";
var propertyInfo = myObject.GetType().GetProperty(nameOfProperty);
var value = propertyInfo.GetValue(myObject, null);
Posted by: Guest on November-21-2019

Code answers related to "how to get value from object in c#"

C# Answers by Framework

Browse Popular Code Answers by Language