2 // This test ensures that we emit attributes for operators
6 using System
.ComponentModel
;
7 using System
.Reflection
;
9 public class BrowsableClass
11 [EditorBrowsable(EditorBrowsableState
.Always
)]
12 public static BrowsableClass
operator ++(BrowsableClass a
)
17 public static int Main ()
19 BrowsableClass c
= new BrowsableClass ();
20 MethodInfo mi
= c
.GetType().GetMethod ("op_Increment");
22 object[] attributes
= mi
.GetCustomAttributes
23 (typeof(EditorBrowsableAttribute
), false);
25 if (attributes
.Length
!= 1)