Table of Contents

Class TlumachDisplayNameKeys

Namespace
Tlumach.AspNetCore.Mvc
Assembly
Tlumach.AspNetCore.Mvc.dll

Forms the keys of display names. Keys use dots only: nested types are separated by dots, and the arity of generic types ("`1") and type arguments are dropped.

public static class TlumachDisplayNameKeys
Inheritance
TlumachDisplayNameKeys
Inherited Members

Methods

GetContainerKey(Type, TlumachDisplayNameKeyStyle, string?)

Returns the key of a container type, e.g. "Pages.Movies.CreateModel.InputModel" for MyApp.Pages.Movies.CreateModel+InputModel with the root namespace "MyApp".

public static string GetContainerKey(Type type, TlumachDisplayNameKeyStyle style, string? rootNamespace)

Parameters

type Type

The container type of a property.

style TlumachDisplayNameKeyStyle

How the key is formed.

rootNamespace string

The root namespace removed by RelativeTypeName; only removed when the namespace equals it or starts with it followed by a dot.

Returns

string

The key.