Method ThrowIfNull<T>
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.dll
ThrowIfNull<T>(T?, string, string?)
Throws a MaaFramework.Binding.MaaInteroperationException when the operation is null.
public static void ThrowIfNull<T>(T? operation, string message = "", string? operationExpression = null)Parameters
operationT?-
The operation.
messagestring-
The message of MaaFramework.Binding.MaaInteroperationException.
operationExpressionstring?-
The operation expression of result.
Type Parameters
T-
Any type.