Method | Description | |
---|---|---|
Equals ( object x, object y ) : bool |
Compares two objects for equality. Used by the equality operator (==).
|
|
GreaterThan ( object x, object y ) : bool |
Determines the ordering of two objects. Used by the greater than operator (>).
|
|
GreaterThanOrEqual ( object x, object y ) : bool |
Determines the ordering of two objects. Used by the greater than or equal operator (>=).
|
|
LessThan ( object x, object y ) : bool |
Determines the ordering of two objects. Used by the less than operator (<).
|
|
LessThanOrEqual ( object x, object y ) : bool |
Determines the ordering of two objects. Used by the less than or equal operator (<=).
|
|
SameValue ( object x, object y ) : bool |
Implements the SameValue algorithm. With this algorithm: 1. NaN is considered equal to NaN. 2. +0 and -0 are considered to be different. |
|
SameValueZero ( object x, object y ) : bool |
Implements the SameValueZero algorithm. With this algorithm: 1. NaN is considered equal to NaN. 2. +0 and -0 are considered to be equal. |
|
StrictEquals ( object x, object y ) : bool |
Compares two objects for equality. Used by the strict equality operator (===). With this algorithm: 1. NaN is not considered equal to NaN. 2. +0 and -0 are considered to be equal. |
public static Equals ( object x, object y ) : bool | ||
x | object | The first object to compare. |
y | object | The first object to compare. |
return | bool |
public static GreaterThan ( object x, object y ) : bool | ||
x | object | The first object to compare. |
y | object | The second object to compare. |
return | bool |
public static GreaterThanOrEqual ( object x, object y ) : bool | ||
x | object | The first object to compare. |
y | object | The second object to compare. |
return | bool |
public static LessThan ( object x, object y ) : bool | ||
x | object | The first object to compare. |
y | object | The second object to compare. |
return | bool |
public static LessThanOrEqual ( object x, object y ) : bool | ||
x | object | The first object to compare. |
y | object | The second object to compare. |
return | bool |
public static SameValue ( object x, object y ) : bool | ||
x | object | The first object to compare. |
y | object | The second object to compare. |
return | bool |
public static SameValueZero ( object x, object y ) : bool | ||
x | object | The first object to compare. |
y | object | The second object to compare. |
return | bool |
public static StrictEquals ( object x, object y ) : bool | ||
x | object | The first object to compare. |
y | object | The second object to compare. |
return | bool |