C# 클래스 NetFx.StringlyTyped.StringlyScopeExtensions

파일 보기 프로젝트 열기: netfx/extensions

공개 메소드들

메소드 설명
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