3 public class TestAttribute : Attribute {
6 public TestAttribute(Type type)
17 [TestAttribute(typeof(void))]
19 public static void Main()
22 typeof(Test).GetCustomAttributes(typeof(TestAttribute), false);
23 foreach (TestAttribute attr in attrs) {
24 Console.WriteLine("TestAttribute({0})", attr.Type);