新建解决方案WindowsFormsApplication1
新建类MyAttribute
using System;
namespace WindowsFormsApplication1{ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")] [AttributeUsage(AttributeTargets.Class, AllowMultiple = t...