Table of Contents

ObjectPortrayalOptions Constructor

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/ObjectPortrayalOptions.cs

ObjectPortrayalOptions()

Initializes a new instance of the ObjectPortrayalOptions class.

public ObjectPortrayalOptions()

Remarks

 The following table shows the initial property values for an instance of <xref href="Cuemon.ObjectPortrayalOptions" data-throw-if-not-resolved="false"></xref>.

 <table><thead><tr><th class="term">Property</th><th class="description">Initial Value</th></tr></thead><tbody><tr><td class="term"><xref href="Cuemon.ObjectPortrayalOptions.BypassOverrideCheck" data-throw-if-not-resolved="false"></xref></td><td class="description"><code>false</code></td></tr><tr><td class="term"><xref href="Cuemon.ObjectPortrayalOptions.NullValue" data-throw-if-not-resolved="false"></xref></td><td class="description"><code><null></code></td></tr><tr><td class="term"><xref href="Cuemon.ObjectPortrayalOptions.NoGetterValue" data-throw-if-not-resolved="false"></xref></td><td class="description"><code><no getter></code></td></tr><tr><td class="term"><xref href="Cuemon.FormattingOptions.FormatProvider" data-throw-if-not-resolved="false"></xref></td><td class="description"><xref href="System.Globalization.CultureInfo.InvariantCulture" data-throw-if-not-resolved="false"></xref></td></tr><tr><td class="term"><xref href="Cuemon.ObjectPortrayalOptions.Delimiter" data-throw-if-not-resolved="false"></xref></td><td class="description"><code>,</code></td></tr><tr><td class="term"><xref href="Cuemon.ObjectPortrayalOptions.PropertyConverter" data-throw-if-not-resolved="false"></xref></td><td class="description"><pre><code class="lang-csharp">(property, instance, provider) =>

{ if (property.CanRead) { if (TypeUtility.IsComplex(property.PropertyType)) { return string.Format(provider, "{0}={1}", property.Name, ConvertFactory.UseConverter<TypeRepresentationConverter>().ChangeType(property.PropertyType, o => o.FullName = true)); } var instanceValue = ReflectionUtility.GetPropertyValue(instance, property); return string.Format(provider, "{0}={1}", property.Name, instanceValue ?? NullValue); } return string.Format(provider, "{0}={1}", property.Name, NoGetterValue); };PropertiesPredicateproperty => property.PropertyType.IsPublic && property.GetIndexParameters().Length == 0