# System.Resources.Extensions

``` diff
 namespace System.Resources.Extensions {
     public sealed class PreserializedResourceWriter : IDisposable, IResourceWriter {
-        public void AddBinaryFormattedResource(string name, byte[] value, string? typeName = null);
+        [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+        public void AddBinaryFormattedResource(string name, byte[] value, string? typeName = null);
     }
 }
```

