public static T GetAssemblyAttribute <T>(Assembly assembly) where T : Attribute { Invariant.ArgumentNotNull((object)assembly, "assembly"); return(Attribute.GetCustomAttribute(assembly, typeof(T)) as T); }