<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS7042</ErrorName>
  <Examples>
    <string>// CS7042: The DllImport attribute cannot be applied to a method that is generic or contained in a generic type
// Line: 9

using System.Runtime.InteropServices;

public class C&lt;T&gt;
{
	[DllImport ("my.dll")]
	static extern void Foo ();
}</string>
    <string>// CS7042: The DllImport attribute cannot be applied to a method that is generic or contained in a generic type
// Line: 9

using System.Runtime.InteropServices;

public class C
{
	[DllImport ("my.dll")]
	static extern void Foo&lt;T&gt; ();
}</string>
  </Examples>
</ErrorDocumentation>