Beispiel #1
0
        int IComparable.CompareTo(object obj)
        {
            JSTreeEntry other = obj as JSTreeEntry;

            if (other != null)
            {
                return(string.Compare(text, other.text));
            }
            else
            {
                return(-1);
            }
        }
Beispiel #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);
            }
        }