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

◆ GetMethodDescriptor()

RuntimeMethodHandle System.Reflection.Emit.DynamicMethod.GetMethodDescriptor ( )
inlinepackage

Definition at line 434 of file DynamicMethod.cs.

435 {
436 if (m_methodHandle == null)
437 {
438 lock (this)
439 {
440 if (m_methodHandle == null)
441 {
442 if (m_DynamicILInfo != null)
443 {
445 }
446 else
447 {
448 if (m_ilGenerator == null || m_ilGenerator.ILOffset == 0)
449 {
450 throw new InvalidOperationException(SR.Format(SR.InvalidOperation_BadEmptyMethodBody, Name));
451 }
453 }
454 }
455 }
456 }
457 return new RuntimeMethodHandle(m_methodHandle);
458 }
void GetCallableMethod(RuntimeModule module, DynamicMethod dm)
void GetCallableMethod(RuntimeModule module, DynamicMethod dm)

References System.SR.Format(), System.Reflection.Emit.DynamicILGenerator.GetCallableMethod(), System.Reflection.Emit.DynamicILInfo.GetCallableMethod(), System.Reflection.Emit.ILGenerator.ILOffset, System.SR.InvalidOperation_BadEmptyMethodBody, System.Reflection.Emit.DynamicMethod.m_DynamicILInfo, System.Reflection.Emit.DynamicMethod.m_ilGenerator, System.Reflection.Emit.DynamicMethod.m_methodHandle, System.Reflection.Emit.DynamicMethod.m_module, and System.Reflection.Emit.DynamicMethod.Name.

Referenced by System.Reflection.Emit.DynamicMethod.CreateDelegate(), System.Reflection.Emit.DynamicMethod.CreateDelegate(), System.Reflection.Emit.DynamicMethod.Invoke(), and System.Reflection.Emit.DynamicResolver.ResolveToken().