public override bool Equals(object obj) { EdgeName e = obj as EdgeName; if (e == null) { return(false); } if (e == this) { return(true); } if (e.format != this.format || e.args.Length != this.args.Length) { return(false); } for (int i = 0; i < this.args.Length; ++i) { if (this.args[i] != e.args[i]) { return(false); } } return(true); }
public ContainerNode(EdgeName name, Func <T, IDisplayNode> convert, IEnumerable <T> data) : base(null, name, null) { this.convert = convert; this.data = data; }
public DisplayNode(ILanguageSpecificModel model, EdgeName n, Model.Element elt) { langModel = model; name = n; element = elt; }