Class ObjectPropertyEnumerators
This class exposes static methods for enumerating properties of objects.
Inheritance
Namespace: WizardWrx
Assembly: WizardWrx.DiagnosticInfo.dll
Syntax
public static class ObjectPropertyEnumerators : object
Fields
| Improve this Doc View SourceDEFAULT_BINDING_FLAGS
Default binding flags bit mask
Declaration
public const BindingFlags DEFAULT_BINDING_FLAGS = null
Field Value
Type | Description |
---|---|
BindingFlags |
Methods
| Improve this Doc View SourceListObjectProperties(String, Object, Int32, String, BindingFlags)
Enumerate the properties of an object, showing the value of each, as a formatted listing.
Declaration
public static void ListObjectProperties(string pstrNameOfObject, object pObjThisOne, int pintLeftPadding = null, string pstrObjectLabelSuffix = null, BindingFlags penmBindingFlags = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | pstrNameOfObject | Name of object as it appears in the calling routine |
System.Object | pObjThisOne | Reference to the object from which to enumerate properties |
System.Int32 | pintLeftPadding | Optional left padding for the report |
System.String | pstrObjectLabelSuffix | Optional supplementary label information for the object |
BindingFlags | penmBindingFlags | Binding flags mask, which determines which properties are enumerated |
See Also
| Improve this Doc View SourceListObjectProperties2String(String, Object, Int32, String, BindingFlags)
Enumerate the properties of an object, showing the value of each, as a formatted listing string.
Declaration
public static string ListObjectProperties2String(string pstrNameOfObject, object pObjThisOne, int pintLeftPadding = null, string pstrObjectLabelSuffix = null, BindingFlags penmBindingFlags = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | pstrNameOfObject | Name of object as it appears in the calling routine |
System.Object | pObjThisOne | Reference to the object from which to enumerate properties |
System.Int32 | pintLeftPadding | Optional left padding for the report |
System.String | pstrObjectLabelSuffix | Optional supplementary label information for the object |
BindingFlags | penmBindingFlags | Binding flags mask, which determines which properties are enumerated |
Returns
Type | Description |
---|---|
System.String | The return value is a string constructed from the strings that would have been written on the console by ListObjectProperties. |
See Also
| Improve this Doc View SourceListObjectPropertyTypesAndValues(String, Object, Int32, String, BindingFlags)
Enumerate the properties of an object, showing for each its type and value, as a formatted listing.
Declaration
public static void ListObjectPropertyTypesAndValues(string pstrNameOfObject, object pObjThisOne, int pintLeftPadding = null, string pstrObjectLabelSuffix = null, BindingFlags penmBindingFlags = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | pstrNameOfObject | Name of object as it appears in the calling routine |
System.Object | pObjThisOne | Reference to the object from which to enumerate properties |
System.Int32 | pintLeftPadding | Optional left padding for the report |
System.String | pstrObjectLabelSuffix | Optional supplementary label information for the object |
BindingFlags | penmBindingFlags | Binding flags mask, which determines which properties are enumerated |
See Also
| Improve this Doc View SourceListObjectPropertyTypesAndValues2String(String, Object, Int32, String, BindingFlags)
Enumerate the properties of an object, showing for each its type and value, as a formatted listing.
Declaration
public static string ListObjectPropertyTypesAndValues2String(string pstrNameOfObject, object pObjThisOne, int pintLeftPadding = null, string pstrObjectLabelSuffix = null, BindingFlags penmBindingFlags = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | pstrNameOfObject | Name of object as it appears in the calling routine |
System.Object | pObjThisOne | Reference to the object from which to enumerate properties |
System.Int32 | pintLeftPadding | Optional left padding for the report |
System.String | pstrObjectLabelSuffix | Optional supplementary label information for the object |
BindingFlags | penmBindingFlags | Binding flags mask, which determines which properties are enumerated |
Returns
Type | Description |
---|---|
System.String | The return value is a string constructed from the strings that would have been written on the console by ListObjectProperties. |