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

◆ CheckConsistency()

static void System.Reflection.Emit.DynamicMethod.CheckConsistency ( MethodAttributes attributes,
CallingConventions callingConvention )
inlinestaticprivate

Definition at line 292 of file DynamicMethod.cs.

293 {
294 if ((attributes & ~MethodAttributes.MemberAccessMask) != MethodAttributes.Static)
295 {
296 throw new NotSupportedException(SR.NotSupported_DynamicMethodFlags);
297 }
298 if ((attributes & MethodAttributes.MemberAccessMask) != MethodAttributes.Public)
299 {
300 throw new NotSupportedException(SR.NotSupported_DynamicMethodFlags);
301 }
302 if (callingConvention != CallingConventions.Standard && callingConvention != CallingConventions.VarArgs)
303 {
304 throw new NotSupportedException(SR.NotSupported_DynamicMethodFlags);
305 }
306 if (callingConvention == CallingConventions.VarArgs)
307 {
308 throw new NotSupportedException(SR.NotSupported_DynamicMethodFlags);
309 }
310 }

References System.SR.NotSupported_DynamicMethodFlags.

Referenced by System.Reflection.Emit.DynamicMethod.Init().