Subtraction operator
Namespace: SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.0.0 (0.9.0)
Syntax
| C# |
|---|
public static Counter64 operator -( Counter64 first, Counter64 second ) |
| Visual Basic |
|---|
Public Shared Operator - ( _ first As Counter64, _ second As Counter64 _ ) As Counter64 |
| Visual C++ |
|---|
public: static Counter64^ operator -( Counter64^ first, Counter64^ second ) |
Parameters
- first
- Type: SnmpSharpNet..::..Counter64
First Counter64 object
- second
- Type: SnmpSharpNet..::..Counter64
Second Counter64 object
Return Value
New object with subtracted values of the 2 parameter objects. If both parameters are null references then null is returned. If either of the two parameters is null, the non-null objects value is set as the value of the new object and returned.
Remarks
Subtract the value of the second Counter64 class value from the first Counter64 class value.
Values of the two objects are subtracted and a new class is instantiated with the result.
Original values of the two parameter classes are preserved.