GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Properly detect availability of BinaryFormatter (#2639) · pythonnet/pythonnet@0258688

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/runtime/StateSerialization
    • RuntimeData.cs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/runtime/StateSerialization/RuntimeData.cs‎

Copy file name to clipboardExpand all lines: src/runtime/StateSerialization/RuntimeData.cs
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public static class RuntimeData
2020
{
2121
try
2222
{
23-
return new BinaryFormatter();
23+
var res = new BinaryFormatter();
24+
res.Serialize(new MemoryStream(), 1); // test if BinaryFormatter is usable
25+
return res;
2426
}
2527
catch
2628
{

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.