Share via


Parameter.AsType<T> Method

Definition

Cast ParameterType to T. This method will return immediately if the underlying value is of type T, otherwise it uses JsonSerializer to convert its value to T.

public T AsType<T> ();
member this.AsType : unit -> 'T
Public Function AsType(Of T) () As T

Type Parameters

T

Returns

T

Applies to