title: How to get the assembly information of an imported MEF function?
body: <p>Is it possible get the assembly information from an imported MEF function?  I need to know the assembly version and name of the Plugin control that contains the function.  Tried the following, but it just returns the  System.ComponentModel.Composition version.</p>
  
  <pre><code>foreach (Lazy&lt;Func&lt;int&gt;, IMetadata&gt; func in PluginFuncs)
  {
      // get assembly information of the Plugin control for the imported function 
      string version = func.GetType().Assembly.GetName().Version.ToString();
      Console.WriteLine(version);
  }
  </code></pre>
  
  <p>Another alternative would be to use hardcoded values in the metadata, but I thought this would not be maintainable.  It would be easy to forget to change those values when the version changed.</p>