/// <summary> /// Returns a String that represents the wrapped instruction /// </summary> /// <returns>See OperandDisplayHelper.ToString</returns> public override string ToString() { if (m_mdef != null) { return(OperandDisplayHelper.ToString(m_mdef, m_instruction, true)); } return(string.Empty); }
/// <summary> /// Returns a String that represents an instruction /// </summary> /// <param name="mdef">Method definition</param> /// <param name="operand">Instruction</param> /// <param name="showLink">Prefix the string with a link</param> /// <returns>A String like [->] opcode operand</returns> public static string ToString(MethodDefinition mdef, Instruction operand, bool showLink) { if (mdef != null) { // Prevent infinite loop, thanks to brien string target = (operand.Operand == operand) ? "<self>" : OperandDisplayHelper.ToString(mdef, operand.Operand); string result = string.Format("({0}) {1} {2}", Changebase(mdef.Body.Instructions.IndexOf(operand).ToString(), ENumericBase.Dec, Settings.Default.RowIndexDisplayBase ), operand.OpCode, target); if (showLink) { result = "-> " + result; } return(result); } return(string.Empty); }
public override string ToString() { return(MethodDefinition != null?OperandDisplayHelper.ToString(MethodDefinition, Item, true) : string.Empty); }
/// <summary> /// Returns a String that represents the wrapped instruction /// </summary> /// <returns>See OperandDisplayHelper.ToString</returns> public override string ToString() { return(OperandDisplayHelper.ToString(m_variable)); }
public override string ToString() { return(OperandDisplayHelper.ToString(Item)); }
/// <summary> /// Returns a String that represents the wrapped parameter /// </summary> /// <returns>See OperandDisplayHelper.ToString</returns> public override string ToString() { return(OperandDisplayHelper.ToString(m_parameter)); }