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

◆ Emit() [17/17]

override void System.Reflection.Emit.DynamicILGenerator.Emit ( OpCode opcode,
Type type )
inlinevirtual

Reimplemented from System.Reflection.Emit.ILGenerator.

Definition at line 104 of file DynamicILGenerator.cs.

105 {
106 if (type == null)
107 {
108 throw new ArgumentNullException("type");
109 }
110 RuntimeType runtimeType = type as RuntimeType;
111 if (runtimeType == null)
112 {
113 throw new ArgumentException(SR.Argument_MustBeRuntimeType);
114 }
115 int tokenFor = GetTokenFor(runtimeType);
117 InternalEmit(opcode);
118 PutInteger4(tokenFor);
119 }
void InternalEmit(OpCode opcode)

References System.SR.Argument_MustBeRuntimeType, System.Reflection.Emit.ILGenerator.EnsureCapacity(), System.Reflection.Emit.DynamicILGenerator.GetTokenFor(), System.Reflection.Emit.ILGenerator.InternalEmit(), System.Reflection.Emit.ILGenerator.PutInteger4(), and System.type.