@@ -143,7 +143,7 @@ public JsonException() { }
143143 protected JsonException ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
144144 public JsonException ( string ? message ) { }
145145 public JsonException ( string ? message , System . Exception ? innerException ) { }
146- public JsonException ( string ? message , string ? path , long ? lineNumber , long ? bytePositionInLine ) { }
146+ public JsonException ( string ? message , string path , long ? lineNumber , long ? bytePositionInLine ) { }
147147 public JsonException ( string ? message , string path , long ? lineNumber , long ? bytePositionInLine , System . Exception ? innerException ) { }
148148 public long ? BytePositionInLine { get { throw null ; } }
149149 public long ? LineNumber { get { throw null ; } }
@@ -190,11 +190,11 @@ public static partial class JsonSerializer
190190 public static object ? Deserialize ( ref System . Text . Json . Utf8JsonReader reader , System . Type returnType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
191191 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 ; }
192192 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 ; }
193- [ return : System . Diagnostics . CodeAnalysis . MaybeNullAttribute ]
193+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
194194 public static TValue Deserialize < TValue > ( System . ReadOnlySpan < byte > utf8Json , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
195- [ return : System . Diagnostics . CodeAnalysis . MaybeNullAttribute ]
195+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
196196 public static TValue Deserialize < TValue > ( string json , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
197- [ return : System . Diagnostics . CodeAnalysis . MaybeNullAttribute ]
197+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
198198 public static TValue Deserialize < TValue > ( ref System . Text . Json . Utf8JsonReader reader , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
199199 public static string Serialize ( object ? value , System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
200200 public static void Serialize ( System . Text . Json . Utf8JsonWriter writer , object ? value , System . Type inputType , System . Text . Json . JsonSerializerOptions ? options = null ) { }
@@ -205,16 +205,11 @@ public static void Serialize(System.Text.Json.Utf8JsonWriter writer, object? val
205205 public static void Serialize < TValue > ( System . Text . Json . Utf8JsonWriter writer , TValue value , System . Text . Json . JsonSerializerOptions ? options = null ) { }
206206 public static string Serialize < TValue > ( TValue value , System . Text . Json . JsonSerializerOptions ? options = null ) { throw null ; }
207207 }
208- public enum JsonSerializerDefaults
209- {
210- General = 0 ,
211- Web = 1 ,
212- }
213208 public sealed partial class JsonSerializerOptions
214209 {
215210 public JsonSerializerOptions ( ) { }
216- public JsonSerializerOptions ( System . Text . Json . JsonSerializerDefaults defaults ) { }
217211 public JsonSerializerOptions ( System . Text . Json . JsonSerializerOptions options ) { }
212+ public JsonSerializerOptions ( System . Text . Json . JsonSerializerDefaults defaults ) { }
218213 public bool AllowTrailingCommas { get { throw null ; } set { } }
219214 public System . Collections . Generic . IList < System . Text . Json . Serialization . JsonConverter > Converters { get { throw null ; } }
220215 public int DefaultBufferSize { get { throw null ; } set { } }
@@ -231,6 +226,11 @@ public JsonSerializerOptions(System.Text.Json.JsonSerializerOptions options) { }
231226 public bool WriteIndented { get { throw null ; } set { } }
232227 public System . Text . Json . Serialization . JsonConverter GetConverter ( System . Type typeToConvert ) { throw null ; }
233228 }
229+ public enum JsonSerializerDefaults
230+ {
231+ General = 0 ,
232+ Web = 1 ,
233+ }
234234 public enum JsonTokenType : byte
235235 {
236236 None = ( byte ) 0 ,
@@ -464,21 +464,22 @@ public void WriteStringValue(System.Text.Json.JsonEncodedText value) { }
464464}
465465namespace System . Text . Json . Serialization
466466{
467- public abstract partial class JsonAttribute : System . Attribute
467+ public enum JsonIgnoreCondition
468468 {
469- protected JsonAttribute ( ) { }
469+ Never = 0 ,
470+ Always = 1 ,
471+ WhenWritingDefault = 2 ,
470472 }
471- [ System . AttributeUsageAttribute ( System . AttributeTargets . Constructor , AllowMultiple = false ) ]
472- public sealed partial class JsonConstructorAttribute : System . Text . Json . Serialization . JsonAttribute
473+ public abstract partial class JsonAttribute : System . Attribute
473474 {
474- public JsonConstructorAttribute ( ) { }
475+ protected JsonAttribute ( ) { }
475476 }
476477 public abstract partial class JsonConverter
477478 {
478479 internal JsonConverter ( ) { }
479480 public abstract bool CanConvert ( System . Type typeToConvert ) ;
480481 }
481- [ System . AttributeUsageAttribute ( System . AttributeTargets . Class | System . AttributeTargets . Enum | System . AttributeTargets . Property | System . AttributeTargets . Struct , AllowMultiple = false ) ]
482+ [ System . AttributeUsageAttribute ( System . AttributeTargets . Class | System . AttributeTargets . Enum | System . AttributeTargets . Property | System . AttributeTargets . Struct , AllowMultiple = false ) ]
482483 public partial class JsonConverterAttribute : System . Text . Json . Serialization . JsonAttribute
483484 {
484485 protected JsonConverterAttribute ( ) { }
@@ -489,40 +490,39 @@ public JsonConverterAttribute(System.Type converterType) { }
489490 public abstract partial class JsonConverterFactory : System . Text . Json . Serialization . JsonConverter
490491 {
491492 protected JsonConverterFactory ( ) { }
492- public abstract System . Text . Json . Serialization . JsonConverter ? CreateConverter ( System . Type typeToConvert , System . Text . Json . JsonSerializerOptions options ) ;
493+ public abstract System . Text . Json . Serialization . JsonConverter CreateConverter ( System . Type typeToConvert , System . Text . Json . JsonSerializerOptions options ) ;
493494 }
494495 public abstract partial class JsonConverter < T > : System . Text . Json . Serialization . JsonConverter
495496 {
496497 protected internal JsonConverter ( ) { }
497- public virtual bool HandleNull { get { throw null ; } }
498498 public override bool CanConvert ( System . Type typeToConvert ) { throw null ; }
499- [ return : System . Diagnostics . CodeAnalysis . MaybeNullAttribute ]
499+ public virtual bool HandleNull { get { throw null ; } }
500+ [ return : System . Diagnostics . CodeAnalysis . MaybeNull ]
500501 public abstract T Read ( ref System . Text . Json . Utf8JsonReader reader , System . Type typeToConvert , System . Text . Json . JsonSerializerOptions options ) ;
501502 public abstract void Write ( System . Text . Json . Utf8JsonWriter writer , T value , System . Text . Json . JsonSerializerOptions options ) ;
502503 }
503- [ System . AttributeUsageAttribute ( System . AttributeTargets . Property , AllowMultiple = false ) ]
504+ [ System . AttributeUsageAttribute ( System . AttributeTargets . Constructor , AllowMultiple = false ) ]
505+ public sealed partial class JsonConstructorAttribute : System . Text . Json . Serialization . JsonAttribute
506+ {
507+ public JsonConstructorAttribute ( ) { }
508+ }
509+ [ System . AttributeUsageAttribute ( System . AttributeTargets . Property , AllowMultiple = false ) ]
504510 public sealed partial class JsonExtensionDataAttribute : System . Text . Json . Serialization . JsonAttribute
505511 {
506512 public JsonExtensionDataAttribute ( ) { }
507513 }
508- [ System . AttributeUsageAttribute ( System . AttributeTargets . Property , AllowMultiple = false ) ]
514+ [ System . AttributeUsageAttribute ( System . AttributeTargets . Property , AllowMultiple = false ) ]
509515 public sealed partial class JsonIgnoreAttribute : System . Text . Json . Serialization . JsonAttribute
510516 {
511517 public JsonIgnoreAttribute ( ) { }
512518 public System . Text . Json . Serialization . JsonIgnoreCondition Condition { get { throw null ; } set { } }
513519 }
514- public enum JsonIgnoreCondition
515- {
516- Never = 0 ,
517- Always = 1 ,
518- WhenWritingDefault = 2 ,
519- }
520- [ System . AttributeUsageAttribute ( System . AttributeTargets . Property , AllowMultiple = false ) ]
520+ [ System . AttributeUsageAttribute ( System . AttributeTargets . Property , AllowMultiple = false ) ]
521521 public sealed partial class JsonIncludeAttribute : System . Text . Json . Serialization . JsonAttribute
522522 {
523523 public JsonIncludeAttribute ( ) { }
524524 }
525- [ System . AttributeUsageAttribute ( System . AttributeTargets . Property , AllowMultiple = false ) ]
525+ [ System . AttributeUsageAttribute ( System . AttributeTargets . Property , AllowMultiple = false ) ]
526526 public sealed partial class JsonPropertyNameAttribute : System . Text . Json . Serialization . JsonAttribute
527527 {
528528 public JsonPropertyNameAttribute ( string name ) { }
@@ -538,7 +538,6 @@ public JsonStringEnumConverter(System.Text.Json.JsonNamingPolicy? namingPolicy =
538538 public abstract partial class ReferenceHandler
539539 {
540540 protected ReferenceHandler ( ) { }
541- public static System . Text . Json . Serialization . ReferenceHandler ? Default { get { throw null ; } }
542541 public static System . Text . Json . Serialization . ReferenceHandler Preserve { get { throw null ; } }
543542 public abstract System . Text . Json . Serialization . ReferenceResolver CreateResolver ( ) ;
544543 }
0 commit comments