int IComparable.CompareTo(object obj) { JSTreeEntry other = obj as JSTreeEntry; if (other != null) { return(string.Compare(text, other.text)); } else { return(-1); } }
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); } }