예제 #1
0
 public static T Deserialize <T>(Span <byte> span)
 {
     return(Utf8.Deserialize <T>(span));
 }
예제 #2
0
 public static T Deserialize <T>(string json) where T : new()
 {
     return(Utf8.Deserialize <T>(MemoryMarshal.AsBytes(json.AsSpan())));
 }