Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Properly detect availability of BinaryFormatter
  • Loading branch information
filmor committed Oct 21, 2025
commit aef25302c6ce5f602c5ce1509f84567832114be7
4 changes: 3 additions & 1 deletion src/runtime/StateSerialization/RuntimeData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public static class RuntimeData
{
try
{
return new BinaryFormatter();
var res = new BinaryFormatter();
res.Serialize(new MemoryStream(), 1); // test if BinaryFormatter is usable
return res;
}
catch
{
Expand Down
Loading