public override bool Equals(object obj) { if (obj is MonadicDo) { MonadicDo other = (MonadicDo)obj; return(this.codeblock == other.codeblock); } return(false); }
private static string ToDot(string parent, MonadicDo node) { string name = String.Format("MonadicDo{0}", counter++); text.AppendFormat(" subgraph cluster_{0}_block {{ style=dotted; color=black; label=\"Protected Block\";\n", name); string codeBlockName = ToDot(name, node.Codeblock); text.AppendFormat(" }}\n"); text.AppendFormat(" {0} [label=\"DO\"];\n", name); text.AppendFormat(" {0} -> {1};\n", name, codeBlockName); return(name); }
private static string ToDot(string parent, MonadicDo node) { string name = String.Format("MonadicDo{0}", counter++); text.AppendFormat(" subgraph cluster_{0}_block {{ style=dotted; color=black; label=\"Protected Block\";\n", name); string codeBlockName = ToDot(name, node.Codeblock); text.AppendFormat(" }}\n"); text.AppendFormat(" {0} [label=\"DO\"];\n", name); text.AppendFormat(" {0} -> {1};\n", name, codeBlockName); return name; }