internal T Detatch <T>() where T : ICodeScopeExtension { ICodeScopeExtension extension = default(T); _extensions.TryRemove(typeof(T), out extension); return((T)extension); }
public ICodeScopeExtension GetExtension <T>() where T : ICodeScopeExtension { ICodeScopeExtension extension = default(T); _extensions.TryGetValue(typeof(T), out extension); return((T)extension); }