IL2050: Correctness of COM interop cannot be guaranteed

Cause

Trimmer found a p/invoke method that declares a parameter with COM marshalling. Correctness of COM interop cannot be guaranteed after trimming.

Example

// IL2050: M1(): P/invoke method 'M2(C)' declares a parameter with COM marshalling. Correctness of COM interop cannot be guaranteed after trimming. Interfaces and interface members might be removed.
static void M1 ()
{
  M2 (null);
}

[DllImport ("Foo")]
static extern void M2 (C autoLayout);

[StructLayout (LayoutKind.Auto)]
public class C
{
}