using System;
using System.Reflection;
class methodbase
{
publicstaticint Main(string[] args)
{
Type MyType = Type.GetType("System.MulticastDelegate");
MethodBase Mymethodbase = MyType.GetMethod("RemoveImpl", BindingFlags.NonPublic);
Console.Write(Mymethodbase);
bool Myispublic = Mymethodbase.IsPublic;
if (Myispublic)
Console.Write("\nMymethodbase is a public method");
else
Console.Write("\nMymethodbase is not a public method");
return 0;
}
}