Show / Hide Table of Contents

Class ObjectPropertyEnumerators

This class exposes static methods for enumerating properties of objects.

Inheritance
System.Object
ObjectPropertyEnumerators
Namespace: WizardWrx
Assembly: WizardWrx.DiagnosticInfo.dll
Syntax
public static class ObjectPropertyEnumerators : object

Fields

| Improve this Doc View Source

DEFAULT_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 Source

ListObjectProperties(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
ListObjectProperties2String(String, Object, Int32, String, BindingFlags)
| Improve this Doc View Source

ListObjectProperties2String(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
ListObjectProperties(String, Object, Int32, String, BindingFlags)
| Improve this Doc View Source

ListObjectPropertyTypesAndValues(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
ListObjectPropertyTypesAndValues2String(String, Object, Int32, String, BindingFlags)
| Improve this Doc View Source

ListObjectPropertyTypesAndValues2String(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.

See Also
ListObjectPropertyTypesAndValues(String, Object, Int32, String, BindingFlags)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX