2 using System
.Reflection
;
4 public class MethodAttribute
: Attribute
{}
5 public class ReturnAttribute
: Attribute
{}
10 public void Method () {}
12 public static int Main () {
14 Type t
= typeof(Test
);
15 MethodInfo mi
= t
.GetMethod ("Method");
16 ICustomAttributeProvider cap
= mi
.ReturnTypeCustomAttributes
;