Example #1
0
        public Int32 CompareTo(UserIteration other, System.ComponentModel.PropertyDescriptor Prop)
        {
            Object propertyX;
            Object propertyY;

            if (Prop != null)
            {
                propertyX = Prop.GetValue(this);
                propertyY = Prop.GetValue(other);
                if (propertyX != null && propertyY != null)
                {
                    if (propertyX.Equals(propertyY))
                    {
                        return(1);
                    }
                    else
                    {
                        return(0);
                    }
                }
                else
                {
                    return(0);
                }
            }
            else
            {
                return(0);
            }
        }
Example #2
0
 public override bool Equals(object obj)
 {
     if (typeof(UserIteration) == obj.GetType())
     {
         UserIteration xT = null;
         xT = (Access.UserIteration)obj;
         return(xT.UserIterationID.Equals(this.UserIterationID));
     }
     else
     {
         return(base.Equals(obj));
     }
 }