C# Class 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.
Inheritance: ILookup
ファイルを表示 Open project: scoutmedia/DataMigration

Protected Properties

Property Type Description
LookupValues string>.Dictionary

Public Methods

Method Description
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.

Method Details

ContainsKey() public method

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

Init() public method

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
return void

LookupValue() public method

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

Property Details

LookupValues protected_oe property

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