示例#1
0
        public int CompareTo(ProjectData other)
        {
            if (object.ReferenceEquals(other, null))

            {
                return(1);
            }


            if ((Pr_name.CompareTo(other.Pr_name)) == 0)

            {
                return(Pr_description.CompareTo(other.Pr_description));
            }


            return(Pr_name.CompareTo(other.Pr_name));
        }
示例#2
0
 public override int GetHashCode()
 {
     return(Pr_name.GetHashCode());
     // return Firstname.GetHashCode();
 }