public static int MainMethod() { dynamic dy = new MemberClassMultipleParams <MyEnum, MyStruct, MyClass>(); MyEnum me = dy.Method_ReturnsT(null, new MyStruct()); return((int)me); }
public static void ForStatement_MultipleParameters() { // ManagedTests.DynamicCSharp.Conformance.dynamic.context.indexer.genclass.genclass006.genclass006 MemberClassMultipleParams <int, string, Test> mc = new MemberClassMultipleParams <int, string, Test>(); dynamic dy = mc; string u = null; Test v = null; int index1 = 10; for (int i = 10; i > dy[v, u]; i--) { index1--; } Assert.Equal(0, index1); Assert.Equal(1, MemberClassMultipleParams <int, string, Test> .Status); }
public static int MainMethod() { MemberClassMultipleParams <int, string, Test> mc = new MemberClassMultipleParams <int, string, Test>(); dynamic dy = mc; string u = null; Test v = null; int index = 10; for (int i = 10; i > dy[v, u]; i--) { index--; } // int ret = M(); if (index == 0 && MemberClassMultipleParams <int, string, Test> .Status == 1) { return(ret); } return(1); }