Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetMethodBaseReturnType()

static Type System.Reflection.Emit.MethodBuilder.GetMethodBaseReturnType ( MethodBase method)
inlinestaticpackage

Definition at line 300 of file MethodBuilder.cs.

301 {
302 if (method is MethodInfo methodInfo)
303 {
304 return methodInfo.ReturnType;
305 }
306 if (method is ConstructorInfo constructorInfo)
307 {
308 return constructorInfo.GetReturnType();
309 }
310 return null;
311 }

Referenced by System.Reflection.Emit.DynamicILGenerator.GetMemberRefToken().