Alexandria.Engines.GoldBox.Resources.ScriptInstruction.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            string format;
            if (OpcodeFormats.TryGetValue(Opcode, out format)) {
                try {
                    object[] array = new object[Operands.Count];
                    for (int index = 0; index < array.Length; index++)
                        array[index] = Operands[index];
                    return string.Format(format, (object[])array);
                } catch (Exception) {
                }
            }

            string text = ToBaseString();

            foreach (ScriptOperand operand in Operands)
                text += " " + operand.ToString();
            return text;
        }