Table of Contents

TypeNameOptions Constructor

Definition

Namespace
Cuemon.Reflection
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Reflection/TypeNameOptions.cs

TypeNameOptions()

Initializes a new instance of the TypeNameOptions class.

public TypeNameOptions()

Remarks

The following table shows the initial property values for an instance of TypeNameOptions.

PropertyInitial Value
ExcludeGenericArgumentsfalse
FullNamefalse
FormatProviderInvariantCulture
FriendlyNameStringConverter
(type, provider, fullname) =>
    {
        var typeName = fullname ? type.FullName?.ToString(provider) ?? type.Name.ToString(provider) : type.Name.ToString(provider);
        var indexOfGraveAccent = typeName.IndexOf('`');
        return indexOfGraveAccent >= 0 ? typeName.Remove(indexOfGraveAccent) : typeName;
    };