C# Класс NetFx.StringlyTyped.StringlyScopeExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
AddType ( this scope, Type type ) : void

Adds the given type to the scope of used types.

AddTypes ( this scope, Assembly assembly ) : void

Adds all the exported (public) types in the given assembly to the scope of used types.

AddTypes ( this scope, IEnumerable types ) : void

Adds the given types to the scope of used types.

GetTypeName ( this scope, Type type ) : string

Gets the safe shortened name of a type that can be used in a given context, considering the already determined IStringlyScope.SafeImports, such as in code generation.

Приватные методы

Метод Описание
SafeGenericTypeName ( Type type ) : string

If the type is a generic type, renders all the T's with the generic type definition name. Otherwise, returns just the type full name.

Описание методов

AddType() публичный статический Метод

Adds the given type to the scope of used types.
public static AddType ( this scope, Type type ) : void
scope this
type System.Type
Результат void

AddTypes() публичный статический Метод

Adds all the exported (public) types in the given assembly to the scope of used types.
public static AddTypes ( this scope, Assembly assembly ) : void
scope this
assembly System.Reflection.Assembly
Результат void

AddTypes() публичный статический Метод

Adds the given types to the scope of used types.
public static AddTypes ( this scope, IEnumerable types ) : void
scope this
types IEnumerable
Результат void

GetTypeName() публичный статический Метод

Gets the safe shortened name of a type that can be used in a given context, considering the already determined IStringlyScope.SafeImports, such as in code generation.
public static GetTypeName ( this scope, Type type ) : string
scope this
type System.Type
Результат string