private ITranslationMechanism GetEntry(Type type) { ITranslationMechanism result = null; while (null != type) { if (this.entries.ContainsKey(type)) { result = this.entries[type]; break; } type = type.BaseType; } return(result); }
protected void AddEntry(Type type, ITranslationMechanism entry) { this.entries[type] = entry; }