示例#1
0
 public int CompareTo(EplanLabellingDocumentPageLineLabelProperty comparePart)
 {
     // A null value means that this object is greater.
     if (comparePart == null)
     {
         return(1);
     }
     else
     {
         int numberPropertyValue;
         int numberComparePropertyValue;
         if (int.TryParse(this.PropertyValue, out numberPropertyValue) && int.TryParse(comparePart.PropertyValue, out numberComparePropertyValue) && numberPropertyValue.CompareTo(numberComparePropertyValue) != 0)
         {
             return(numberPropertyValue.CompareTo(numberComparePropertyValue));
         }
         else if (this.PropertyValue.CompareTo(comparePart.PropertyValue) != 0)
         {
             return(this.PropertyValue.CompareTo(comparePart.PropertyValue));
         }
         else
         {
             return(0);
         }
     }
 }
示例#2
0
 public bool Equals(EplanLabellingDocumentPageLineLabelProperty other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.PropertyValue.Equals(other.PropertyValue));
 }