Merge pull request #5198 from BrzVlad/fix-binprot-stats
[mono.git] / mcs / tests / gtest-exmethod-15.cs
1
2
3 using System;
4 using System.Reflection;
5
6 public interface IA
7 {
8         void Foo (IA self);
9 }
10
11 public static class C
12 {
13         public static TAttribute GetCustomAttribute<TAttribute> (this ICustomAttributeProvider self)
14         {
15                 var attributes = self.GetCustomAttributes<TAttribute> ();
16 //              if (attributes == null || attributes.Length == 0)
17 //                      return null;
18
19                 return attributes [0];
20         }
21
22         public static TAttribute [] GetCustomAttributes<TAttribute> (this ICustomAttributeProvider self)
23         {
24                 return null;
25         }       
26         
27         public static void Main ()
28         {
29         }
30 }