title: Is this an FxCop bug for a VB.NET implementation referencing a C# interface containing generics?
body: <p>We have an application in VB.NET that is referencing a C# library. An interface definition is in the C# library and the implementation is in the VB.NET application. One of the interface definitions is a typed method for a nullable struct.</p>
  
  <p>FxCop can't analyse correctly and reports an error of:</p>
  
  <blockquote>
    <p>The following error was encountered while reading module 'Console': Could not resolve member reference: [Library, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]Library.IWithGeneric::GetSomething.</p>
  </blockquote>
  
  <p>I have created a basic outline application to prove this. </p>
  
  <p>Is the code missing something so that FxCop can load the module (it compiles and runs with no warnings)?
  Or is it simply an FxCop bug?</p>
  
  <p><strong>IWithGeneric.cs</strong></p>
  
  <pre><code>namespace Library
  {
      public interface IWithGeneric
      {
          T? GetSomething&lt;T&gt;() where T : struct;
      }
  }
  </code></pre>
  
  <p><strong>VbGenericImplementation.vb</strong></p>
  
  <pre><code>Imports Library
  
  Public Class VbGenericImplementation
      Implements IWithGeneric
  
      Public Function GetSomething(Of T As Structure)() As T? Implements IWithGeneric.GetSomething
          Return New T
      End Function
  
  End Class
  </code></pre>
  
  <p><strong>Root.vb</strong></p>
  
  <pre><code>Module Root
  
      Sub Main()
  
          Dim test As New VbGenericImplementation
  
          Dim result = test.GetSomething(Of Integer)()
  
          System.Console.WriteLine(result)
          System.Console.ReadLine()
  
      End Sub
  
  End Module
  </code></pre>