public static T GetAssemblyAttribute <T>(Assembly assembly) where T : Attribute { Invariant.ArgumentNotNull((object)assembly, "assembly"); return(Attribute.GetCustomAttribute(assembly, typeof(T)) as T); }
protected void RegisterDisposable(IDisposable disposable) { Invariant.ArgumentNotNull((object)disposable, "disposable"); this.VerifyAccess(); this.disposables.Add(disposable); }