public Test() { dynamic dy = new MemberClass(); string s = "Foo"; Test.s_result = dy.Method_ReturnsT <int, int, string>(out s_field, ref s); }
public static int MainMethod() { int i = 1; dynamic dynamic = new MemberClass(); int result = dynamic.Method_ReturnsT <int>(ref i); if (i == 0 && result == 0) { return(0); } return(1); }
public static Test ExReturnTest(this int t) { dynamic dy = new MemberClass <int>(); float x = 3.3f; int i = -1; return(new Test() { Field = t + (int)dy.Method_ReturnsT(x, i) } ); }
public static int MainMethod() { dynamic mc = new MemberClass(); string u = string.Empty; string v = string.Empty; var result = (int)mc.Method_ReturnsT <int, string, string>(out u, ref v); if (result == 0 && u == null && v == string.Empty) { return(0); } else { return(1); } }
public static int MainMethod() { Test t = new Test(); dynamic mc1 = new MemberClass <int>(); int result1 = t.TestMethod((int)mc1.Method_ReturnsT()); dynamic mc2 = new MemberClass <string>(); int result2 = Test.TestMethod((string)mc2.Method_ReturnsT()); if (result1 == 0 && result2 == 0) { return(0); } else { return(1); } }
public T TestMethod <T>(ref T t1, T t2) { dynamic mc = new MemberClass <T>(); return((T)mc.Method_ReturnsT(ref t1, t2)); }
public void TestMethod() { dynamic dy = new MemberClass(); s_result = (int)dy.Method_ReturnsT <int, string>(null) + 1; }
public T TestMethod <T>(T t) { dynamic dy = new MemberClass(); return((T)dy.Method_ReturnsT <T>(t, t, t)); }
public bool TestMethod() { dynamic mc = new MemberClass(); return((bool)mc.Method_ReturnsT <bool>()); }