Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CoreGraphics] Remove a CGPDFOperatorTable.SetCallback overload in .N…
…ET. (dotnet#14219) Remove the CGPDFOperatorTable.SetCallback overload that takes a normal managed delegate, because on platforms that are AOT'ed, this delegate must point to a static function with the MonoPInvokeCallback attribute, and if you don't follow this requirement, you'll either get an exception at runtime (which is not very nice to the app developer) or make the AOT compiler crash (which is a completely different level of not being nice to developers). In .NET, we already have an overload that takes an unmanaged function pointer, where these requirements are enforced by the C# compiler, so just use that instead.
- Loading branch information