public override bool Equals(object obj) { if (!(obj is SystemCommand)) { return(false); } SystemCommand other = (SystemCommand)obj; return(this.command == other.command && this.argument == other.argument); }
private static string ToDot(string parent, SystemCommand node) { string name = String.Format("SystemCommand{0}", counter++); text.AppendFormat(" {0}_cmd [label=\"{1}\"];\n", name, node.Command); text.AppendFormat(" {0}_arg [label=\"{1}\"];\n", name, node.Argument); text.AppendFormat(" {0} -> {0}_cmd;\n", name); text.AppendFormat(" {0} -> {0}_arg;\n", name); return(name); }
private static string ToDot(string parent, SystemCommand node) { string name = String.Format("SystemCommand{0}", counter++); text.AppendFormat(" {0}_cmd [label=\"{1}\"];\n", name, node.Command); text.AppendFormat(" {0}_arg [label=\"{1}\"];\n", name, node.Argument); text.AppendFormat(" {0} -> {0}_cmd;\n", name); text.AppendFormat(" {0} -> {0}_arg;\n", name); return name; }