a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
768 B
C#
29 lines
768 B
C#
// Compiler options: -r:gtest-434-lib.dll
|
|
|
|
using System;
|
|
using System.Reflection;
|
|
|
|
namespace testcase
|
|
{
|
|
public class Init : ConfigurationExpression, IInitializationExpression
|
|
{
|
|
}
|
|
|
|
public class Program
|
|
{
|
|
public static int Main ()
|
|
{
|
|
var t = typeof (Init);
|
|
var m = t.GetMethod ("testcase.IInitializationExpression.AddRegistry", BindingFlags.NonPublic | BindingFlags.Instance);
|
|
Console.WriteLine (m.Attributes);
|
|
|
|
if (m.Attributes != (MethodAttributes.Private | MethodAttributes.Virtual | MethodAttributes.Final | MethodAttributes.HideBySig | MethodAttributes.VtableLayoutMask | MethodAttributes.CheckAccessOnOverride))
|
|
return 1;
|
|
|
|
IInitializationExpression expression = new Init ();
|
|
expression.AddRegistry<string> (11);
|
|
return 0;
|
|
}
|
|
}
|
|
}
|