[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs7042-2.cs
bloba70c129019d10dc327643b8316306a30bd4cdfc9
1 // CS7042: The DllImport attribute cannot be applied to a method that is generic or contained in a generic type
2 // Line: 9
4 using System.Runtime.InteropServices;
6 public class C
8 [DllImport ("my.dll")]
9 static extern void Foo<T> ();