예제 #1
0
 /// <summary>
 /// Initialises a new instance of the InlineMethodILInstruction class
 /// </summary>
 /// <param name="code">The OpCode describing the operation of the instruction</param>
 internal InlineTokenILInstruction(AssemblyDef assembly, OpCode code, uint metadataToken)
     : base(code)
 {
     _entry = assembly.ResolveMetadataToken(metadataToken);
 }
예제 #2
0
 /// <summary>
 /// Initialises a new instance of the InlineMethodILInstruction class
 /// </summary>
 /// <param name="code">The OpCode describing the operation of the instruction</param>
 internal InlineFieldILInstruction(AssemblyDef assembly, OpCode code, uint metadataToken)
     : base(code)
 {
     _fieldDef = assembly.ResolveMetadataToken(metadataToken) as MemberRef;
 }
예제 #3
0
 /// <summary>
 /// Initialises a new instance of the InlineMethodILInstruction class
 /// </summary>
 /// <param name="code">The OpCode describing the operation of the instruction</param>
 internal InlineTypeILInstruction(AssemblyDef assembly, OpCode code, uint metadataToken)
     : base(code)
 {
     _typeDef = assembly.ResolveMetadataToken(metadataToken) as TypeRef;
 }