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

◆ Call() [2/9]

void System.Runtime.Serialization.CodeGenerator.Call ( MethodInfo methodInfo)
inlinepackage

Definition at line 523 of file CodeGenerator.cs.

524 {
525 if (methodInfo.IsVirtual && !methodInfo.DeclaringType.IsValueType)
526 {
527 if (_codeGenTrace != 0)
528 {
529 EmitSourceInstruction("Callvirt " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString());
530 }
532 }
533 else if (methodInfo.IsStatic)
534 {
535 if (_codeGenTrace != 0)
536 {
537 EmitSourceInstruction("Static Call " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString());
538 }
540 }
541 else
542 {
543 if (_codeGenTrace != 0)
544 {
545 EmitSourceInstruction("Call " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString());
546 }
548 }
549 }
virtual void Emit(OpCode opcode)
static readonly OpCode Callvirt
Definition OpCodes.cs:225
static readonly OpCode Call
Definition OpCodes.cs:83

References System.Runtime.Serialization.CodeGenerator._codeGenTrace, System.Runtime.Serialization.CodeGenerator._ilGen, System.Reflection.Emit.OpCodes.Call, System.Reflection.Emit.OpCodes.Callvirt, System.Reflection.Emit.ILGenerator.Emit(), and System.Runtime.Serialization.CodeGenerator.EmitSourceInstruction().