Ejemplo n.º 1
0
                public int CompareTo(PrimKey other)
                {
                    int i = PartID.CompareTo(other.PartID);

                    if (i == 0)
                    {
                        i = ItemID.CompareTo(other.ItemID);
                    }
                    return(i);
                }
Ejemplo n.º 2
0
 public int CompareTo(object obj)
 {
     if (obj is Project)
     {
         Project project = (Project)obj;
         return(UUID.CompareTo(project.UUID));
     }
     else
     {
         throw new ArgumentException("object is not a Project and cannot be compared");
     }
 }
Ejemplo n.º 3
0
        public int CompareTo(object obj)
        {
            if (obj is ProjectDescription)
            {
                ProjectDescription project = (ProjectDescription)obj;

                if (File == null || project.File == null)
                {
                    return(UUID.CompareTo(project.UUID));
                }
                return(this.File.FilePath.CompareTo(project.File.FilePath));
            }
            else
            {
                throw new ArgumentException("object is not a ProjectDescription and cannot be compared");
            }
        }