public static void WriteTo(this Instruction instruction, ITextOutput writer)
 {
     writer.WriteDefinition(CecilExtensions.OffsetToString(instruction.Offset), instruction);
     writer.Write(": ");
     writer.WriteReference(instruction.OpCode.Name, instruction.OpCode);
     if (instruction.Operand != null)
     {
         writer.Write(' ');
         if (instruction.OpCode == OpCodes.Ldtoken)
         {
             if (instruction.Operand is MethodReference)
             {
                 writer.Write("method ");
             }
             else if (instruction.Operand is FieldReference)
             {
                 writer.Write("field ");
             }
         }
         WriteOperand(writer, instruction.Operand);
     }
 }
 public static void WriteOffsetReference(ITextOutput writer, Instruction instruction)
 {
     writer.WriteReference(CecilExtensions.OffsetToString(instruction.Offset), instruction);
 }