Ejemplo n.º 1
0
        int IComparable.CompareTo(object obj)
        {
            JSTreeEntry other = obj as JSTreeEntry;

            if (other != null)
            {
                return(string.Compare(text, other.text));
            }
            else
            {
                return(-1);
            }
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            JSTreeEntry other = obj as JSTreeEntry;

            if (other != null)
            {
                return((id == other.id) && (text == other.text) && (nodeClass == other.nodeClass));
            }
            else
            {
                return(false);
            }
        }