Check out example codes for "for each property in object c#". It will help you in understanding the concepts better.

Code Example 1

foreach (PropertyInfo propertyInfo in obj.GetType().GetProperties())
{
   // do stuff here
}

Learn ReactJs, React Native from akashmittal.com