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

◆ GetMethodSigHelper() [3/7]

static SignatureHelper System.Reflection.Emit.SignatureHelper.GetMethodSigHelper ( Module mod,
CallingConvention unmanagedCallConv,
Type returnType )
inlinestaticpackage

Definition at line 74 of file SignatureHelper.cs.

75 {
76 if ((object)returnType == null)
77 {
78 returnType = typeof(void);
79 }
80 MdSigCallingConvention callingConvention;
81 switch (unmanagedCallConv)
82 {
83 case CallingConvention.Cdecl:
84 callingConvention = MdSigCallingConvention.C;
85 break;
86 case CallingConvention.Winapi:
87 case CallingConvention.StdCall:
88 callingConvention = MdSigCallingConvention.StdCall;
89 break;
90 case CallingConvention.ThisCall:
91 callingConvention = MdSigCallingConvention.ThisCall;
92 break;
93 case CallingConvention.FastCall:
94 callingConvention = MdSigCallingConvention.FastCall;
95 break;
96 default:
97 throw new ArgumentException(SR.Argument_UnknownUnmanagedCallConv, "unmanagedCallConv");
98 }
99 return new SignatureHelper(mod, callingConvention, returnType, null, null);
100 }
SignatureHelper(Module mod, MdSigCallingConvention callingConvention)

References System.Reflection.Emit.SignatureHelper.SignatureHelper(), and System.SR.Argument_UnknownUnmanagedCallConv.