public static StaticOutMethod ( int &a, int &b ) : void | ||
a | int | |
b | int | |
return | void |
public void GetMethodInfo_Action_OutArgs() { int a = 0, b; MethodInfo info = InfoHelper.GetMethodInfo(() => InfoHelperClass.StaticOutMethod(ref a, out b)); Assert.IsNotNull(info); Assert.AreEqual(info.Name, "StaticOutMethod"); }
public void GetMethodInfo_Action_OutArgsHelper() { MethodInfo info = InfoHelper.GetMethodInfo( () => InfoHelperClass.StaticOutMethod(ref InfoHelper <int> .RefOrOut, out InfoHelper <int> .RefOrOut)); Assert.IsNotNull(info); Assert.AreEqual(info.Name, "StaticOutMethod"); }
public void GetParameterInfo_Static_Out() { ParameterInfo info = InfoHelper.GetParameterInfo <int>(p => InfoHelperClass.StaticOutMethod(ref InfoHelper <int> .RefOrOut, out InfoHelper <int> .Parameter)); Assert.IsNotNull(info); Assert.AreEqual(info.Name, "b"); Assert.AreEqual(info.ParameterType, typeof(int).MakeByRefType()); }