Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f14bb8

Browse files
author
dse
committed
Net40 compatibility fix.
1 parentf9f0fd7 commit8f14bb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎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,outgetStringDelegate))
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
returngetStringDelegate(pstr,size);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp