title: Can You Clone The CallingAssembly Object In .NET?
body: <p>I'm trying to capture the Calling Assembly in an object and then pass it to a method that will then use it.</p>
  <p>Here is what I'm trying to do:</p>
  <pre><code>'This code is called from another assembly
  Dim objCallingAssembly As Object = Assembly.GetCallingAssembly()
  
  'The executing assembly now passes the clone to a method in its assembly
  PopulateCallingAssembly (objCallingAssembly)
  
  Private Sub PopulateCallingAssembly(objCallingAssembly As Object)
  
      Dim strCallingAssemblyFileName = GetAssemblyFileName(objCallingAssembly.GetCallingAssembly().Location)
      Dim strCallingAssemblyName = objCallingAssembly.GetCallingAssembly().GetName().Name
      Dim strCAllingAssemblyVersion = objCallingAssembly.GetCallingAssembly().GetName().Version.ToString
  
  End Sub
  </code></pre>
  <p>How can I make a clone (or copy) of the Calling Assembly object that will contain static values and not change?</p>