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 ObjectPortrayalOptions.

PropertyInitial Value
BypassOverrideCheckfalse
NullValue<null>
NoGetterValue<no getter>
FormatProviderInvariantCulture
Delimiter,
PropertyConverter
(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