C# 클래스 DataMigration.AbstractBaseLookup

A base class for lookups that can use a C# Dictionary object for their implementation. Child classes usually just implement Init() to populate the Dictionary.
상속: ILookup
파일 보기 프로젝트 열기: scoutmedia/DataMigration

보호된 프로퍼티들

프로퍼티 타입 설명
LookupValues string>.Dictionary

공개 메소드들

메소드 설명
ContainsKey ( string key ) : bool

Returns true if the Lookup contains the key, false otherwise.

Init ( ) : void

This is essentially a two-phase ctor. The sequence of construction is, instantiate the lookup, then set its properties, then call Init() so it can migrate the property values to their implementation-specific roles. In this abstract class, it is unimplemented, and must be provided by child classes.

LookupValue ( string key ) : string

Returns the value associated with this key.

메소드 상세

ContainsKey() 공개 메소드

Returns true if the Lookup contains the key, false otherwise.
public ContainsKey ( string key ) : bool
key string
리턴 bool

Init() 공개 메소드

This is essentially a two-phase ctor. The sequence of construction is, instantiate the lookup, then set its properties, then call Init() so it can migrate the property values to their implementation-specific roles. In this abstract class, it is unimplemented, and must be provided by child classes.
public Init ( ) : void
리턴 void

LookupValue() 공개 메소드

Returns the value associated with this key.
public LookupValue ( string key ) : string
key string Key.
리턴 string

프로퍼티 상세

LookupValues 보호되어 있는 프로퍼티

The lookup values used to implement ILookup.
protected Dictionary LookupValues
리턴 string>.Dictionary