コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
        }