Check out example codes for "how to get value from object in c#". It will help you in understanding the concepts better.

Code Example 1

var nameOfProperty = "property1";
var propertyInfo = myObject.GetType().GetProperty(nameOfProperty);
var value = propertyInfo.GetValue(myObject, null);

Learn ReactJs, React Native from akashmittal.com