Пример #1
0
 /// <summary>
 /// Compares two versions of the Version Number
 /// </summary>
 /// <param name="v">Version Number to compare</param>
 /// <returns>Relative order of objects being compared</returns>
 public int CompareTo(VersionNumber v)
 {
     return((int)((long)this.CompositeVersion - (long)v.CompositeVersion));
 }
Пример #2
0
 /// <summary>
 /// Compares two versions of the Version Number
 /// </summary>
 /// <param name="v">Version Number to compare</param>
 /// <returns>Relative order of objects being compared</returns>
 public int CompareTo(VersionNumber v)
 {
     return (int) ((long) this.CompositeVersion - (long) v.CompositeVersion);
 }