Table of Contents

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

operation T?

The operation.

message string

The message of MaaFramework.Binding.MaaInteroperationException.

operationExpression string?

The operation expression of result.

Type Parameters

T

Any type.

Exceptions

MaaInteroperationException