TomsToolbox.Desktop (in TomsToolbox.Desktop.dll) Version: 18.104.22.168
public sealed class BinaryOperationProcessor
Public NotInheritable Class BinaryOperationProcessor
If the conversions succeed, the result of the operation is returned. If any error occurs, the result is null.
The BinaryOperationProcessor type exposes the following members.
Gets the operation the converter is performing.
Executes the operation.
|SafeCastT| (Defined by ObjectExtensions.)
Performs a cast from object to T
, avoiding possible null violations if T
is a value type.
This processor works with different types on both sides.
- both values must be convertible to a double
- value1 must have an explicit operator for the specified operation and value2 has a type converter matching the expected operator parameter.
If the value supports implicit or explicit casts, the operation is retried on all types that the type can be casted to. This enables the converter to handle most operations on Vector
is mapped to Offset(Vector)
is mapped to Transform(Matrix)