'Declaration Public Operator =( _ ByVal left As TdDecimal, _ ByVal right As TdDecimal _ ) As Boolean
'Usage
Parameters
- left
- An instance of TdDecimal.
- right
- An instance of TdDecimal.
'Declaration Public Operator =( _ ByVal left As TdDecimal, _ ByVal right As TdDecimal _ ) As Boolean
'Usage
false
when left and right operands are Null. Therefore the reverse condition can be considered true
. TdDecimal implementation is very similar to the Nullable class in this regard.TdDecimal x = TdDecimal.Null; TdDecimal y = new TdDecimal(1.0M); if (x == y) { // x is equal to y. Console.WriteLine(@"X is equal to Y"). } else { // x is not equal y Console.WriteLine(@"X is not equal to Y"). } TdDecimal y = TdDecimal.Null; if (x == y) { // x is equal to y. Console.WriteLine(@"X is equal to Y"). } else { // x is not equal y Console.WriteLine(@"X is not equal to Y"). }
Product | Versions | Platforms |
---|---|---|
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |