loop over object properties csharp

Code Example - loop over object properties csharp

                
                        foreach (PropertyInfo prop in someObject.GetType().GetProperties())
{
    Console.WriteLine(%%%~COMPRESS~PRE~0~%%%quot;{prop.Name}: {prop.GetValue(someObject, null)}");
}