Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DeserializeAsync< TValue >() [1/2]

static ValueTask< TValue?> System.Text.Json.JsonSerializer.DeserializeAsync< TValue > ( Stream utf8Json,
JsonSerializerOptions? options = null,
CancellationToken cancellationToken = default(CancellationToken) )
inlinestatic

Definition at line 830 of file JsonSerializer.cs.

831 {
832 if (utf8Json == null)
833 {
834 throw new ArgumentNullException("utf8Json");
835 }
836 JsonTypeInfo typeInfo = GetTypeInfo(options, typeof(TValue));
838 }
static async ValueTask< TValue > ReadAllAsync< TValue >(Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken)
static JsonTypeInfo GetTypeInfo(JsonSerializerOptions options, Type runtimeType)

References System.cancellationToken, System.Text.Json.Dictionary, System.Text.Json.JsonSerializer.GetTypeInfo(), System.options, and System.Text.Json.JsonSerializer.ReadAllAsync< TValue >().