Reserving two diagnostic codes for serialization work (#84439)
authorLevi Broderick <GrabYourPitchforks@users.noreply.github.com>
Thu, 6 Apr 2023 21:01:00 +0000 (14:01 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Apr 2023 21:01:00 +0000 (14:01 -0700)
docs/project/list-of-diagnostics.md
src/libraries/Common/src/System/Obsoletions.cs

index 69337b6..a39981b 100644 (file)
@@ -104,6 +104,8 @@ The PR that reveals the implementation of the `<IncludeInternalObsoleteAttribute
 |  __`SYSLIB0047`__ | XmlSecureResolver is obsolete. Use XmlResolver.ThrowingResolver instead when attempting to forbid XML external entity resolution. |
 |  __`SYSLIB0048`__ | RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead. |
 |  __`SYSLIB0049`__ | JsonSerializerOptions.AddContext is obsolete. To register a JsonSerializerContext, use either the TypeInfoResolver or TypeInfoResolverChain properties. |
+|  __`SYSLIB0050`__ | (reserved for serialization work) |
+|  __`SYSLIB0051`__ | (reserved for serialization work) |
 
 ## Analyzer Warnings
 
index a787b2f..0358334 100644 (file)
@@ -159,5 +159,11 @@ namespace System
 
         internal const string JsonSerializerOptionsAddContextMessage = "JsonSerializerOptions.AddContext is obsolete. To register a JsonSerializerContext, use either the TypeInfoResolver or TypeInfoResolverChain properties.";
         internal const string JsonSerializerOptionsAddContextDiagId = "SYSLIB0049";
+
+        internal const string LegacyFormatterMessage = "(reserved for serialization work)";
+        internal const string LegacyFormatterDiagId = "SYSLIB0050";
+
+        internal const string LegacyFormatterImplMessage = "(reserved for serialization work)";
+        internal const string LegacyFormatterImplDiagId = "SYSLIB0051";
     }
 }