public void Dynamic_InvokeStaticMethod_InvokesMethodWithOutParameter() { var dynamicClass = DynamicStaticTypeMembers.Create(this.GetType()); int result = 17; var arg = RefOutArg.Create(result); dynamicClass.Dynamic_InvokeStaticMethod_InvokesMethodWithOutParameter_Method(arg); result = arg.Value; Assert.IsTrue(Dynamic_InvokeStaticMethod_InvokesMethodWithOutParameter_MethidInvoked); Assert.AreEqual(13, result); }
object ISimpleParser.TryParse(string value) { var ret = RefOutArg.Create(); if (TType.TryParse(value, ret)) { return(ret.ValueAsObject); } return(null); }