# System.Runtime.Serialization.Formatters

``` diff
 namespace System.Runtime.Serialization.Formatters {
-    public enum FormatterAssemblyStyle
+    [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+    public enum FormatterAssemblyStyle
-    public enum FormatterTypeStyle
+    [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+    public enum FormatterTypeStyle
-    public interface IFieldInfo
+    [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+    public interface IFieldInfo
-    public enum TypeFilterLevel
+    [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+    public enum TypeFilterLevel
 }
```

