title: Create instance of generic soapClient
body: <p>Normally i would instantiate a SoapClient like this:</p>
  
  <pre><code>public static TestWSSoapClient Test()
  {
      string endpoint = "endpoint";
      var soapClient = new TestWSSoapClient(endpoint);
  
      return soapClient;
  }
  </code></pre>
  
  <p>But i'd like to use a more generic approach:</p>
  
  <pre><code>public static ICommunicationObject SoapClient&lt;TSoap&gt;()
  {
      string endpoint = "endpoint";
      var soapClient = new TSoap(endpoint);
  
      return soapClient;
  }
  </code></pre>
  
  <p>But obviously you cannot create an instance like that from a generic type. How can i create this instance and still pass the <code>endpoint</code> string to it?</p>