FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Net40 compatibility fix. · RedRiverSoftware/pythonnet@06f4faa · GitHub

Repository navigation

Commit 06f4faa

Browse files
dse
committed
Net40 compatibility fix.
1 parent fc549e3 commit 06f4faa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/runtime/perf_utils/EncodingGetStringPolyfill.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public unsafe static string GetString(this Encoding encoding, byte* pstr, int si
3535
if (!PlatformGetStringMethodsDelegatesCache.TryGetValue(encoding, out getStringDelegate))
3636
{
3737
getStringDelegate =
38-
(EncodingGetStringUnsafeDelegate)PlatformGetStringMethodInfo.CreateDelegate(
39-
typeof(EncodingGetStringUnsafeDelegate), encoding);
38+
(EncodingGetStringUnsafeDelegate)Delegate.CreateDelegate(
39+
typeof(EncodingGetStringUnsafeDelegate), encoding, PlatformGetStringMethodInfo);
4040
PlatformGetStringMethodsDelegatesCache.Add(encoding, getStringDelegate);
4141
}
4242
return getStringDelegate(pstr, size);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL