We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf9f0fd7 commit8f14bb8Copy full SHA for 8f14bb8
src/runtime/perf_utils/EncodingGetStringPolyfill.cs
@@ -35,8 +35,8 @@ public unsafe static string GetString(this Encoding encoding, byte* pstr, int si
35
if(!PlatformGetStringMethodsDelegatesCache.TryGetValue(encoding,outgetStringDelegate))
36
{
37
getStringDelegate=
38
-(EncodingGetStringUnsafeDelegate)PlatformGetStringMethodInfo.CreateDelegate(
39
-typeof(EncodingGetStringUnsafeDelegate),encoding);
+(EncodingGetStringUnsafeDelegate)Delegate.CreateDelegate(
+typeof(EncodingGetStringUnsafeDelegate),encoding,PlatformGetStringMethodInfo);
40
PlatformGetStringMethodsDelegatesCache.Add(encoding,getStringDelegate);
41
}
42
returngetStringDelegate(pstr,size);