Skip to content

DisplayNameFormatterOptions Record ​

Definition ​

Options for a DisplayNameFormatter.

c#
public sealed record DisplayNameFormatterOptions : IEquatable<DisplayNameFormatterOptions>

View source

Constructors ​

NameDescription
DisplayNameFormatterOptions()

Properties ​

NameDescription
PrefixMembersWithTypeWhether members should be prefixed with their type or not. Defaults to true.
UseCSharpKeywordsForPrimitiveTypesWhether to use the C# keyword for primitive types rather than the type name, that is, int instead of Int32. Defaults to false.
UseFullyQualifiedTypesWhether types should be fully qualified with their namespace or not. Defaults to false.
UseQuestionMarksForNullableTypesWhether question marks should be used to identify nullable types or not, that is, int? instead of Nullable<T>. Defaults to true.