Answers for "c# traverse all elements in class property"

C#
0

C# traverseall elements in class property

SomeObject.GetType().GetProperties().ToList().ForEach(x => Console.WriteLine($"{x.Name} = {x.GetValue(SomeObject, null)}"));
Posted by: Guest on January-27-2021

Code answers related to "c# traverse all elements in class property"

C# Answers by Framework

Browse Popular Code Answers by Language