Example #1
0
        public override bool Equals(object obj)
        {
            DefaultNavigationPoint b = obj as DefaultNavigationPoint;

            if (object.ReferenceEquals(b, null))
            {
                return(false);
            }
            return(this.FileName == b.FileName);
        }
Example #2
0
        public virtual int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }
            if (this.GetType() != obj.GetType())
            {
                // if of different types, sort the types by name
                return(this.GetType().Name.CompareTo(obj.GetType().Name));
            }
            DefaultNavigationPoint b = obj as DefaultNavigationPoint;

            return(this.FileName.CompareTo(b.FileName));
        }