[]
Determines if two Length values are not equal.
public static bool operator !=(Length unit1, Length unit2)
Type | Name | Description |
---|---|---|
Length | unit1 | A first Length value to compare. |
Length | unit2 | A second Length value to compare. |
Type | Description |
---|---|
bool | A bool value. |
var length1 = new Length("1in");
var length2 = new Length("2in");
bool result = length1 != length2; // true