public static IClassBuilder WithAttribute <TAttribute>(this IClassBuilder classBuilder, bool ignoreNamespace = false, params object[] arguments) where TAttribute : Attribute { Type typeOfAttribute = typeof(TAttribute); string attributeName = typeOfAttribute.GetCSharpTypeString(ignoreNamespace); return(classBuilder.WithAttribute(attributeName, arguments)); }