Пример #1
0
 /// <summary>
 /// Creates a new instruction with a <see cref="byte"/> operand
 /// </summary>
 /// <param name="value">The value</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(byte value)
 {
     return(Instruction.Create(this, value));
 }
Пример #2
0
 /// <summary>
 /// Creates a new instruction with a method local operand
 /// </summary>
 /// <param name="local">The method local</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(Local local)
 {
     return(Instruction.Create(this, local));
 }
Пример #3
0
 /// <summary>
 /// Creates a new instruction with no operand
 /// </summary>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction()
 {
     return(Instruction.Create(this));
 }
Пример #4
0
 /// <summary>
 /// Creates a new instruction with a method signature operand
 /// </summary>
 /// <param name="methodSig">The method signature</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(MethodSig methodSig)
 {
     return(Instruction.Create(this, methodSig));
 }
Пример #5
0
 /// <summary>
 /// Creates a new instruction with a method parameter operand
 /// </summary>
 /// <param name="parameter">The method parameter</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(Parameter parameter)
 {
     return(Instruction.Create(this, parameter));
 }
Пример #6
0
 /// <summary>
 /// Creates a new instruction with a method operand
 /// </summary>
 /// <param name="method">The method</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(IMethod method)
 {
     return(Instruction.Create(this, method));
 }
Пример #7
0
 /// <summary>
 /// Creates a new instruction with a token operand
 /// </summary>
 /// <param name="token">The token</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(ITokenOperand token)
 {
     return(Instruction.Create(this, token));
 }
Пример #8
0
 /// <summary>
 /// Creates a new instruction with a method/field operand
 /// </summary>
 /// <param name="mr">The method/field</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(MemberRef mr)
 {
     return(Instruction.Create(this, mr));
 }
Пример #9
0
 /// <summary>
 /// Creates a new instruction with a field operand
 /// </summary>
 /// <param name="field">The field</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(IField field)
 {
     return(Instruction.Create(this, field));
 }
Пример #10
0
 /// <summary>
 /// Creates a new instruction with a type operand
 /// </summary>
 /// <param name="type">The type</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(CorLibTypeSig type)
 {
     return(Instruction.Create(this, type.TypeDefOrRef));
 }
Пример #11
0
 /// <summary>
 /// Creates a new instruction with a type operand
 /// </summary>
 /// <param name="type">The type</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(ITypeDefOrRef type)
 {
     return(Instruction.Create(this, type));
 }
Пример #12
0
 /// <summary>
 /// Creates a new instruction with an instruction target list operand
 /// </summary>
 /// <param name="targets">The targets</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(IList <Instruction> targets)
 {
     return(Instruction.Create(this, ThreadSafeListCreator.MakeThreadSafe(targets)));
 }
Пример #13
0
 /// <summary>
 /// Creates a new instruction with an instruction target operand
 /// </summary>
 /// <param name="target">Target instruction</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(Instruction target)
 {
     return(Instruction.Create(this, target));
 }
Пример #14
0
 /// <summary>
 /// Creates a new instruction with a string operand
 /// </summary>
 /// <param name="s">The string</param>
 /// <returns>A new <see cref="Instruction"/> instance</returns>
 public Instruction ToInstruction(string s)
 {
     return(Instruction.Create(this, s));
 }