To get names and properties for specific type use Type.GetProperties. The method returns an array of ProperyInfo. A property is considered public to reflection if it has at least one accessor that is public. Otherwise, the property is considered private, and you must use BindingFlags.
In my scenario I wanted my class to be formatted as below.
0 Comments