.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
472 B

using System;
internal class CallIndirect
{
private unsafe void Test(IntPtr f)
{
((delegate* unmanaged[Stdcall]<int, void>)f)(42);
}
private unsafe void UnmanagedDefaultCall(IntPtr f)
{
((delegate* unmanaged<int, void>)f)(42);
}
private unsafe void CustomCall(IntPtr f)
{
((delegate* unmanaged[Custom]<int, void>)f)(42);
}
private unsafe void MultipleCustomCall(IntPtr f)
{
((delegate* unmanaged[SuppressGCTransition, Custom]<int, void>)f)(42);
}
}