| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fc549e3 commit 06f4faa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,8 +35,8 @@ public unsafe static string GetString(this Encoding encoding, byte* pstr, int si | |||
| 35 | 35 | if (!PlatformGetStringMethodsDelegatesCache.TryGetValue(encoding, out getStringDelegate)) | |
| 36 | 36 | { | |
| 37 | 37 | getStringDelegate = | |
| 38 | - (EncodingGetStringUnsafeDelegate)PlatformGetStringMethodInfo.CreateDelegate( | ||
| 39 | - typeof(EncodingGetStringUnsafeDelegate), encoding); | ||
| 38 | + (EncodingGetStringUnsafeDelegate)Delegate.CreateDelegate( | ||
| 39 | + typeof(EncodingGetStringUnsafeDelegate), encoding, PlatformGetStringMethodInfo); | ||
| 40 | 40 | PlatformGetStringMethodsDelegatesCache.Add(encoding, getStringDelegate); | |
| 41 | 41 | } | |
| 42 | 42 | return getStringDelegate(pstr, size); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments