JsonRpcResult.SetExpectedResultType(Type) Method

Definition

Provides a hint for a deferred deserialization of the Result value as to the type argument that will be used when calling GetResult<T>() later.

C#
protected internal virtual void SetExpectedResultType (Type resultType);

Parameters

resultType
Type

The type that will be used as the generic type argument to GetResult<T>().

Applies to

Toode Versioonid
StreamJsonRpc 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9