DisplayNameFormatterOptions Record
Definition
Options for a DisplayNameFormatter.
c#
public sealed record DisplayNameFormatterOptions : IEquatable<DisplayNameFormatterOptions>Constructors
| Name | Description |
|---|---|
DisplayNameFormatterOptions() |
Properties
| Name | Description |
|---|---|
PrefixMembersWithType | Whether members should be prefixed with their type or not. Defaults to true. |
UseCSharpKeywordsForPrimitiveTypes | Whether to use the C# keyword for primitive types rather than the type name, that is, int instead of Int32. Defaults to false. |
UseFullyQualifiedTypes | Whether types should be fully qualified with their namespace or not. Defaults to false. |
UseQuestionMarksForNullableTypes | Whether question marks should be used to identify nullable types or not, that is, int? instead of Nullable<T>. Defaults to true. |