public TValue this[TKey key] { get { return((TValue)this._context.ResolveService(KeyedServiceIndex <TKey, TValue> .GetService(key))); } }
public bool TryGetValue(TKey key, out TValue value) { object obj2; if (this._context.TryResolveService(KeyedServiceIndex <TKey, TValue> .GetService(key), out obj2)) { value = (TValue)obj2; return(true); } value = default(TValue); return(false); }