C# 클래스 Antmicro.Migrant.Utilities.SwapList

Key/value pair list in which more generic types are always inserted after their specializations.
파일 보기 프로젝트 열기: antmicro/Migrant 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GenericIsMatch bool
InnerAddOrReplace int
IsMatch bool

공개 메소드들

메소드 설명
AddGenericTemplate ( Type genericType, Delegate>.Func actualDelegateGenerator ) : void

Adds new key/dynamically generated pair or replaces one if the key already exists.

AddOrReplace ( Type key, Delegate value ) : void

Adds new key/value pair or replaces existing one if the key already exists.

FindMatchingIndex ( Type value ) : int

Finds the index of the delegate that matches given type.

GetByIndex ( int index ) : Delegate

Gets a delegate by an index.

SwapList ( ) : System

Initializes a new instance of the Antmicro.Migrant.Utilities.SwapList class.

비공개 메소드들

메소드 설명
GenericIsMatch ( Type candidate, Type value ) : bool
InnerAddOrReplace ( Type key, Delegate value, Delegate>.Func valueCreator ) : int
IsMatch ( Type candidate, Type value ) : bool

메소드 상세

AddGenericTemplate() 공개 메소드

Adds new key/dynamically generated pair or replaces one if the key already exists.
public AddGenericTemplate ( Type genericType, Delegate>.Func actualDelegateGenerator ) : void
genericType System.Type Key.
actualDelegateGenerator Delegate>.Func Function generating final value.
리턴 void

AddOrReplace() 공개 메소드

Adds new key/value pair or replaces existing one if the key already exists.
public AddOrReplace ( Type key, Delegate value ) : void
key System.Type Key.
value System.Delegate Value.
리턴 void

FindMatchingIndex() 공개 메소드

Finds the index of the delegate that matches given type.
public FindMatchingIndex ( Type value ) : int
value System.Type Type to match.
리턴 int

GetByIndex() 공개 메소드

Gets a delegate by an index.
public GetByIndex ( int index ) : Delegate
index int The index of the element.
리턴 System.Delegate

SwapList() 공개 메소드

Initializes a new instance of the Antmicro.Migrant.Utilities.SwapList class.
public SwapList ( ) : System
리턴 System