Method
Operator_XOr
Description
Used to overload the XOr operator, providing custom functionality.
Notes
Create an Operator_XOr function in a class to specify the functionality of the XOr operator for that class. Whenever you use the XOr operator in your code to operate on two instances of the class, your Operator_XOr function will be called.
In the function, the Self instance is the left operand and the other operand is passed as a parameter.
Important
This is not currently supported for Android.
Sample code
Suppose you define a class myResult with the property a as Boolean. Operator_XOr is defined as:
Function Operator_XOr(rhs As MyResult) As Boolean
Return Self.a Xor rhs.a
End Function
Compatibility
All project types on all supported operating systems.
See also
XOr operator, Operator XOrRight function.