Class ObjectPortrayalOptions
Configuration options for ObjectPortrayal(Object, Action<ObjectPortrayalOptions>).
Implements
Inherited Members
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public sealed class ObjectPortrayalOptions : FormattingOptions<CultureInfo>, IParameterObject
Constructors
| Improve this Doc View SourceObjectPortrayalOptions()
Initializes a new instance of the ObjectPortrayalOptions class.
Declaration
public ObjectPortrayalOptions()
Remarks
The following table shows the initial property values for an instance of ObjectPortrayalOptions.
Property | Initial Value |
---|---|
BypassOverrideCheck | false |
NullValue | <null> |
NoGetterValue | <no getter> |
FormatProvider | InvariantCulture |
Delimiter | , |
PropertyConverter |
|
PropertiesPredicate | property => property.PropertyType.IsPublic && property.GetIndexParameters().Length == 0 |
Properties
| Improve this Doc View SourceBypassOverrideCheck
Gets or sets a value indicating whether an overriden method will return without further processing.
Declaration
public bool BypassOverrideCheck { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
If ObjectPortrayal(Object, Action<ObjectPortrayalOptions>) is called from within an overriden ToString() method, this property should have a value of true
to avoid StackOverflowException.
Delimiter
Gets or sets the delimiter specification that is used together with PropertyConverter.
Declaration
public string Delimiter { get; set; }
Property Value
Type | Description |
---|---|
String | The delimiter specification that is used together with PropertyConverter. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ArgumentException |
|
NoGetterValue
Gets or sets the string representation of a missing getter
method of a property.
Declaration
public string NoGetterValue { get; set; }
Property Value
Type | Description |
---|---|
String | The string representation of a missing |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ArgumentException |
|
NullValue
Gets or sets the string representation of a null
value.
Declaration
public string NullValue { get; set; }
Property Value
Type | Description |
---|---|
String | The string representation of a |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ArgumentException |
|
PropertiesPredicate
Gets or sets the function delegate that defines a set of criteria and determines whether the specified PropertyInfo meets those criteria.
Declaration
public Func<PropertyInfo, bool> PropertiesPredicate { get; set; }
Property Value
Type | Description |
---|---|
Func<PropertyInfo, Boolean> | The function delegate that defines a set of criteria and determines whether the specified PropertyInfo meets those criteria. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
PropertyConverter
Gets or sets the function delegate that convert a PropertyInfo object into a human-readable string.
Declaration
public Func<PropertyInfo, object, IFormatProvider, string> PropertyConverter { get; set; }
Property Value
Type | Description |
---|---|
Func<PropertyInfo, Object, IFormatProvider, String> | The function delegate that convert a PropertyInfo object into a human-readable string. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|