public Type GetType(Type interfaceType, Type realObjectType) { string key = WrapperDictionary.GenerateKey(interfaceType, realObjectType); if (this._wrapperTypes.ContainsKey(key)) { return(this._wrapperTypes[key]); } return(null); }
public void SetType(Type interfaceType, Type realObjectType, Type wrapperType) { string key = WrapperDictionary.GenerateKey(interfaceType, realObjectType); if (this._wrapperTypes.ContainsKey(key)) { this._wrapperTypes[key] = wrapperType; return; } this._wrapperTypes.Add(key, wrapperType); }