public static void Main() { PublicMethods.Test(); ProtectedMethods.Test(); PrivateMethods.Test(); Expression.Call(typeof(Derived), "PublicOnBase", Type.EmptyTypes); Expression.Call(typeof(Derived), "ProtectedOnBase", Type.EmptyTypes); Expression.Call(typeof(Derived), "PrivateOnBase", Type.EmptyTypes); // Keep all methods on type UnknownNameMethodClass Expression.Call(typeof(UnknownNameMethodClass), GetUnknownString(), Type.EmptyTypes); TestUnknownType.Test(); TestGenericMethods.Test(); }
public static void Main() { Expression.Call(typeof(Foo), "PublicStaticMethod", Type.EmptyTypes); Expression.Call(typeof(Foo), "PublicNonStaticMethod", Type.EmptyTypes); Expression.Call(typeof(Foo), "ProtectedStaticMethod", Type.EmptyTypes); Expression.Call(typeof(Foo), "ProtectedNonStaticMethod", Type.EmptyTypes); Expression.Call(typeof(Foo), "PrivateStaticMethod", Type.EmptyTypes); Expression.Call(typeof(Foo), "PrivateNonStaticMethod", Type.EmptyTypes); Expression.Call(typeof(Derived), "PublicOnBase", Type.EmptyTypes); Expression.Call(typeof(Derived), "ProtectedOnBase", Type.EmptyTypes); Expression.Call(typeof(Derived), "PrivateOnBase", Type.EmptyTypes); // Keep all methods on type Bar Expression.Call(typeof(Bar), GetUnknownString(), Type.EmptyTypes); TestUnknownType.Test(); }