Method EnumProps
EnumProps(Type, bool, BindingFlags)
Enumerates property information for the specified Type.
public static IEnumerable<PropertyInfo> EnumProps(Type type, bool sort = false, BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.Public)
Parameters
type
TypeType which properties are enumerated.
sort
boolDefines whether to sort returned properties by name.
bindingFlags
BindingFlagsSpecifies flags that control the way in which the search for members is conducted.