Class TypeNameOptions
Configuration options for ToFriendlyName(IDecorator<Type>, Action<TypeNameOptions>).
Implements
Inherited Members
Namespace: Cuemon.Reflection
Assembly: Cuemon.Core.dll
Syntax
public sealed class TypeNameOptions : FormattingOptions<CultureInfo>, IParameterObject
Constructors
| Improve this Doc View SourceTypeNameOptions()
Initializes a new instance of the TypeNameOptions class.
Declaration
public TypeNameOptions()
Remarks
The following table shows the initial property values for an instance of TypeNameOptions.
Property | Initial Value |
---|---|
ExcludeGenericArguments | false |
FullName | false |
FormatProvider | InvariantCulture |
FriendlyNameStringConverter |
|
Properties
| Improve this Doc View SourceExcludeGenericArguments
Gets or sets a value indicating whether to exclude generic arguments from a Type.
Declaration
public bool ExcludeGenericArguments { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
FriendlyNameStringConverter
Gets or sets the function delegate that convert a Type object into a human-readable string.
Declaration
public Func<Type, IFormatProvider, bool, string> FriendlyNameStringConverter { get; set; }
Property Value
Type | Description |
---|---|
Func<Type, IFormatProvider, Boolean, String> | The function delegate that convert a Type object into a human-readable string. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
FullName
Gets or sets a value indicating whether to use the fully qualified name of a Type.
Declaration
public bool FullName { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|