C# 클래스 Microsoft.Scripting.Actions.TypeGroup

A TypeCollision is used when we have a collision between two types with the same name. Currently this is only possible w/ generic methods that should logically have arity as a portion of their name. For eg: System.EventHandler and System.EventHandler[T] System.Nullable and System.Nullable[T] System.IComparable and System.IComparable[T] The TypeCollision provides an indexer but also is a real type. When used as a real type it is the non-generic form of the type. The indexer allows the user to disambiguate between the generic and non-generic versions. Therefore users must always provide additional information to get the generic version.
상속: TypeTracker
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetGenericArity int
ToString string
TypeGroup System.Linq.Expressions
TypeGroup System.Linq.Expressions

공개 메소드들

메소드 설명
GetMemberNames ( ) : IList
GetNonGenericType ( ) : Type
GetTypeForArity ( int arity ) : TypeTracker
TryGetNonGenericType ( Type &nonGenericType ) : bool
UpdateTypeEntity ( TypeTracker existingTypeEntity, TypeTracker newType ) : TypeTracker

비공개 메소드들

메소드 설명
GetGenericArity ( Type type ) : int

Gets the arity of generic parameters

ToString ( ) : string
TypeGroup ( Type t1, TypeGroup existingTypes ) : System.Linq.Expressions
TypeGroup ( Type t1, int arity1, Type t2, int arity2 ) : System.Linq.Expressions

메소드 상세

GetMemberNames() 공개 메소드

public GetMemberNames ( ) : IList
리턴 IList

GetNonGenericType() 공개 메소드

No non-generic type is represented by this group.
public GetNonGenericType ( ) : Type
리턴 System.Type

GetTypeForArity() 공개 메소드

public GetTypeForArity ( int arity ) : TypeTracker
arity int
리턴 TypeTracker

TryGetNonGenericType() 공개 메소드

public TryGetNonGenericType ( Type &nonGenericType ) : bool
nonGenericType System.Type
리턴 bool

UpdateTypeEntity() 공개 정적인 메소드

public static UpdateTypeEntity ( TypeTracker existingTypeEntity, TypeTracker newType ) : TypeTracker
existingTypeEntity TypeTracker The merged list so far. Could be null
newType TypeTracker The new type(s) to add to the merged list
리턴 TypeTracker