Метод | Описание | |
---|---|---|
BeginScope ( ) : IStringlyScope |
Creates a new stringly scope, which can be used to register types that will be used as strings, so that safe code imports can be determined and type names can be shortened to the safest form. The scope takes into account all type names in use, and determines what namespaces can be safely removed from certain type names without introducing ambiguities. |
|
ToTypeFullName ( this type ) : string |
Gets the C# name for the type, including proper rendering of generics, using full names of types. For example, for a generic enumerable of boolean, which has a full name of |
|
ToTypeName ( this type ) : string |
Gets the C# name for the type, including proper rendering of generics, using the simple name of types. For example, for a generic enumerable of boolean, which has a full name of |
Метод | Описание | |
---|---|---|
GetTypeFullName ( |
||
ToTypeFullName ( this type, Queue |
||
ToTypeName ( this type, Queue |
public static BeginScope ( ) : IStringlyScope | ||
Результат | IStringlyScope |
public static ToTypeFullName ( this type ) : string | ||
type | this | The type to convert to a C# full type name. |
Результат | string |
public static ToTypeName ( this type ) : string | ||
type | this | The type to convert to a simple C# type name. |
Результат | string |