Answers for "c# grab values from object"

C#
1

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 "c# grab values from object"

C# Answers by Framework

Browse Popular Code Answers by Language