29 lines
768 B
C#
Raw Permalink Normal View History

// 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;
}
}
}