CompareTo() public method

Compares the current instance with another object of the same type.
obj is not the same type as this instance.
public CompareTo ( object obj ) : int
obj object An object to compare with this instance.
return int
示例#1
0
		private void CompareToTestAssert(VersionNumber v1, VersionNumber v2, int expectedValue)
		{
			Assert.AreEqual(v1.CompareTo(v2), expectedValue,
				String.Format("VersionNumber.CompareTo: [{0}].CompareTo([{1}]) returned {2}. Expected: {3}",
				v1.ToString(), v2.ToString(), v1.CompareTo(v2), expectedValue));
		}