We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a543ec0 commit 0f1a005Copy full SHA for 0f1a005
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs
@@ -1139,10 +1139,11 @@ public static TDelegate GetDelegateForFunctionPointer<TDelegate>(IntPtr ptr)
1139
[EditorBrowsable(EditorBrowsableState.Never)]
1140
public static IntPtr GetFunctionPointerForDelegate(Delegate d)
1141
{
1142
+ ArgumentNullException.ThrowIfNull(d);
1143
+
1144
#if TARGET_BROWSER || TARGET_WASI
1145
if (OperatingSystem.IsWasi() || OperatingSystem.IsBrowser()) throw new PlatformNotSupportedException(SR.PlatformNotSupported_DynamicEntrypoint);
1146
#endif
- ArgumentNullException.ThrowIfNull(d);
1147
1148
return GetFunctionPointerForDelegateInternal(d);
1149
}
0 commit comments