示例#1
0
        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);
        }
示例#2
0
 public ContainerNode(EdgeName name, Func <T, IDisplayNode> convert, IEnumerable <T> data) : base(null, name, null)
 {
     this.convert = convert;
     this.data    = data;
 }
示例#3
0
 public DisplayNode(ILanguageSpecificModel model, EdgeName n, Model.Element elt)
 {
     langModel = model;
     name      = n;
     element   = elt;
 }