Method | Description | |
---|---|---|
GetGenericName ( |
Computes a short language-agnostic name for a type, including generic parameters, e.g. GenericName(typeof(int)) is "Int32"; GenericName(typeof(Dictionary<int, string>)) is "Dictionary<Int32, String>". The result is memoized for generic types, so that the name is computed only once. |
|
NameWithGenericParams ( this t ) : string |
Extension method on Type that is an alias for the ShortName method.
|
Method | Description | |
---|---|---|
ComputeGenericName ( |
Computes a type's name without memoization.
|
public static GetGenericName ( |
||
type | Type whose name you want | |
return | string |
public static NameWithGenericParams ( this t ) : string | ||
t | this | |
return | string |