Skip to content

Commit ebaaf92

Browse files
committed
wording improvements
1 parent 6eb1eeb commit ebaaf92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/modeling/customizing-file-storage-and-xml-serialization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ We recommend that you study the code in **Dsl\Generated Code\Serializer.cs** and
251251
1. Override methods in Dsl\GeneratedCode\SerializationHelper.cs
252252

253253
> [!NOTE]
254-
> Starting with Visual Studio 2022 17.13, the default serialization implementation will no longer support the serialization or deserialization of custom data types using BinaryFormatter due to [security risks with BinaryFormatter](/dotnet/standard/serialization/binaryformatter-security-guide).
254+
> Starting with Visual Studio 2022 17.13, the default serialization implementation no longer supports the serialization or deserialization of custom data types using BinaryFormatter due to [security risks with BinaryFormatter](/dotnet/standard/serialization/binaryformatter-security-guide).
255255
>
256256
> If you use a custom data type for any domain properties, you need to either override the serialization methods in the `SerializationHelper` class, or implement a `TypeConverter` capable of converting each custom data type to and from a string.
257257
>
258-
> To maintain backward compatibility with models that use `BinaryFormatter` serialization, you can implement a `TypeConverter` that deserializes the binary data. The following code snippet serves as a template for implementing this compatibility:
258+
> While we do not recommend using `BinaryFormatter` for security reasons, if you must maintain backward compatibility with older models that used `BinaryFormatter` serialization, you can implement a `TypeConverter` that deserializes the binary data. The following code snippet serves as a template for implementing this compatibility:
259259

260260
```csharp
261261
class MyCustomDataTypeConverter : TypeConverter

0 commit comments

Comments
 (0)