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
typeTypeThe container type of a property.
styleTlumachDisplayNameKeyStyleHow the key is formed.
rootNamespacestringThe root namespace removed by RelativeTypeName; only removed when the namespace equals it or starts with it followed by a dot.
Returns
- string
The key.