Methods
AddName
#Add a mapping from a runtime type to a user friendly name. If the type has already been named, the new name will replace the old name.
AddName
#Add a mapping from a runtime type to a user friendly name. If the type has already been renamed, the new name will replace the old name. We recommend using the overload that requires specific naming constants.
Parameters:
| type (Type) | Type to add. |
ContainsName
#Gets whether a specific type has been renamed.
Parameters:
| type (Type) | Type to search for. |
Returns: True if there exists a name mapping for this type.
Format
#public static string Format(Type type, GrammarNumber number = GrammarNumber.Singular, GrammarArticle article = GrammarArticle.None, GrammarCasing casing = GrammarCasing.Lower)
Format a name using grammatical constraints.
Parameters:
| type (Type) | Type to format, if the type hasn't been added, uncorrect English may ensue. |
| number (Prose.GrammarNumber = GrammarNumber.Singular) | Grammatical number. |
| article (Prose.GrammarArticle = GrammarArticle.None) | Grammatical article. |
| casing (Prose.GrammarCasing = GrammarCasing.Lower) | Grammatical casing. |
Returns: Formatted string.
Format<T>
#public static string Format<T>(GrammarNumber number = GrammarNumber.Singular, GrammarArticle article = GrammarArticle.None, GrammarCasing casing = GrammarCasing.Lower)
Format a name using grammatical constraints.
Parameters:
| number (Prose.GrammarNumber = GrammarNumber.Singular) | Grammatical number. |
| article (Prose.GrammarArticle = GrammarArticle.None) | Grammatical article. |
| casing (Prose.GrammarCasing = GrammarCasing.Lower) | Grammatical casing. |
Returns: Formatted string.