@@ -183,6 +183,52 @@ public partial struct JsonReaderState
183183 public JsonReaderState ( System . Text . Json . JsonReaderOptions options = default ( System . Text . Json . JsonReaderOptions ) ) { throw null ; }
184184 public System . Text . Json . JsonReaderOptions Options { get { throw null ; } }
185185 }
186+ public static partial class JsonSerializer
187+ {
188+ #if NETCOREAPPCURRENT
189+ private const System . Diagnostics . CodeAnalysis . DynamicallyAccessedMemberTypes MembersAccessedOnRead = System . Diagnostics . CodeAnalysis . DynamicallyAccessedMemberTypes . PublicConstructors | System . Diagnostics . CodeAnalysis . DynamicallyAccessedMemberTypes . PublicProperties ;
190+ private const System . Diagnostics . CodeAnalysis . DynamicallyAccessedMemberTypes MembersAccessedOnWrite = System . Diagnostics . CodeAnalysis . DynamicallyAccessedMemberTypes . PublicProperties ;
191+ public static object ? Deserialize ( System . ReadOnlySpan < byte > utf8Json , [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnRead ) ] System . Type returnType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
192+ public static object ? Deserialize ( string json , [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnRead ) ] System . Type returnType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
193+ public static object ? Deserialize ( ref System . Text . Json . Utf8JsonReader reader , [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnRead ) ] System . Type returnType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
194+ public static System . Threading . Tasks . ValueTask < object ? > DeserializeAsync ( System . IO . Stream utf8Json , [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnRead ) ] System . Type returnType , System . Text . Json . JsonSerializerOptions ? options = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
195+ public static System . Threading . Tasks . ValueTask < TValue > DeserializeAsync < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnRead ) ] TValue > ( System . IO . Stream utf8Json , System . Text . Json . JsonSerializerOptions ? options = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
196+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
197+ public static TValue Deserialize < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnRead ) ] TValue > ( System . ReadOnlySpan < byte > utf8Json , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
198+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
199+ public static TValue Deserialize < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnRead ) ] TValue > ( string json , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
200+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
201+ public static TValue Deserialize < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnRead ) ] TValue > ( ref System . Text . Json . Utf8JsonReader reader , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
202+ public static string Serialize ( object ? value , [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnWrite ) ] System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
203+ public static void Serialize ( System . Text . Json . Utf8JsonWriter writer , object ? value , [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnWrite ) ] System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null ) { }
204+ public static System . Threading . Tasks . Task SerializeAsync ( System . IO . Stream utf8Json , object ? value , [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnWrite ) ] System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
205+ public static System . Threading . Tasks . Task SerializeAsync < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnWrite ) ] TValue > ( System . IO . Stream utf8Json , TValue value , System . Text . Json . JsonSerializerOptions ? options = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
206+ public static byte [ ] SerializeToUtf8Bytes ( object ? value , [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnWrite ) ] System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
207+ public static byte [ ] SerializeToUtf8Bytes < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnWrite ) ] TValue > ( TValue value , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
208+ public static void Serialize < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnWrite ) ] TValue > ( System . Text . Json . Utf8JsonWriter writer , TValue value , System . Text . Json . JsonSerializerOptions ? options = null ) { }
209+ public static string Serialize < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( MembersAccessedOnWrite ) ] TValue > ( TValue value , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
210+ #else
211+ public static object ? Deserialize ( System . ReadOnlySpan < byte > utf8Json , System . Type returnType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
212+ public static object ? Deserialize ( string json , System . Type returnType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
213+ public static object ? Deserialize ( ref System . Text . Json . Utf8JsonReader reader , System . Type returnType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
214+ public static System . Threading . Tasks . ValueTask < object ? > DeserializeAsync ( System . IO . Stream utf8Json , System . Type returnType , System . Text . Json . JsonSerializerOptions ? options = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
215+ public static System . Threading . Tasks . ValueTask < TValue > DeserializeAsync < TValue > ( System . IO . Stream utf8Json , System . Text . Json . JsonSerializerOptions ? options = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
216+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
217+ public static TValue Deserialize < TValue > ( System . ReadOnlySpan < byte > utf8Json , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
218+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
219+ public static TValue Deserialize < TValue > ( string json , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
220+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
221+ public static TValue Deserialize < TValue > ( ref System . Text . Json . Utf8JsonReader reader , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
222+ public static string Serialize ( object ? value , System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
223+ public static void Serialize ( System . Text . Json . Utf8JsonWriter writer , object ? value , System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null ) { }
224+ public static System . Threading . Tasks . Task SerializeAsync ( System . IO . Stream utf8Json , object ? value , System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
225+ public static System . Threading . Tasks . Task SerializeAsync < TValue > ( System . IO . Stream utf8Json , TValue value , System . Text . Json . JsonSerializerOptions ? options = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
226+ public static byte [ ] SerializeToUtf8Bytes ( object ? value , System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
227+ public static byte [ ] SerializeToUtf8Bytes < TValue > ( TValue value , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
228+ public static void Serialize < TValue > ( System . Text . Json . Utf8JsonWriter writer , TValue value , System . Text . Json . JsonSerializerOptions ? options = null ) { }
229+ public static string Serialize < TValue > ( TValue value , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
230+ #endif
231+ }
186232 public sealed partial class JsonSerializerOptions
187233 {
188234 public JsonSerializerOptions ( ) { }
@@ -461,8 +507,14 @@ internal JsonConverter() { }
461507 public partial class JsonConverterAttribute : System . Text . Json . Serialization . JsonAttribute
462508 {
463509 protected JsonConverterAttribute ( ) { }
510+ #if NETCOREAPPCURRENT
511+ public JsonConverterAttribute ( [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( System . Diagnostics . CodeAnalysis . DynamicallyAccessedMemberTypes . PublicParameterlessConstructor ) ] System . Type converterType ) { }
512+ [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembersAttribute ( System . Diagnostics . CodeAnalysis . DynamicallyAccessedMemberTypes . PublicParameterlessConstructor ) ]
513+ public System . Type ? ConverterType { get { throw null ; } }
514+ #else
464515 public JsonConverterAttribute ( System . Type converterType ) { }
465516 public System . Type ? ConverterType { get { throw null ; } }
517+ #endif
466518 public virtual System . Text . Json . Serialization . JsonConverter ? CreateConverter ( System . Type typeToConvert ) { throw null ; }
467519 }
468520 public abstract partial class JsonConverterFactory : System . Text . Json . Serialization . JsonConverter
0 commit comments