# System.Security.Claims

``` diff
 namespace System.Security.Claims {
     public class ClaimsIdentity : IIdentity {
-        protected ClaimsIdentity(SerializationInfo info);
+        [EditorBrowsableAttribute(EditorBrowsableState.Never)]
+        [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+        protected ClaimsIdentity(SerializationInfo info);
-        protected ClaimsIdentity(SerializationInfo info, StreamingContext context);
+        [EditorBrowsableAttribute(EditorBrowsableState.Never)]
+        [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+        protected ClaimsIdentity(SerializationInfo info, StreamingContext context);
     }
     public class ClaimsPrincipal : IPrincipal {
-        protected ClaimsPrincipal(SerializationInfo info, StreamingContext context);
+        [EditorBrowsableAttribute(EditorBrowsableState.Never)]
+        [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+        protected ClaimsPrincipal(SerializationInfo info, StreamingContext context);
     }
 }
```

