1 // Compiler options: -r:gtest-434-lib.dll
4 using System
.Reflection
;
8 public class Init
: ConfigurationExpression
, IInitializationExpression
14 public static int Main ()
16 var t
= typeof (Init
);
17 var m
= t
.GetMethod ("testcase.IInitializationExpression.AddRegistry", BindingFlags
.NonPublic
| BindingFlags
.Instance
);
18 Console
.WriteLine (m
.Attributes
);
20 if (m
.Attributes
!= (MethodAttributes
.Private
| MethodAttributes
.Virtual
| MethodAttributes
.Final
| MethodAttributes
.HideBySig
| MethodAttributes
.VtableLayoutMask
| MethodAttributes
.CheckAccessOnOverride
))
23 IInitializationExpression expression
= new Init ();
24 expression
.AddRegistry
<string> (11);