title: WCF. Service generic methods
body: <p>How can I use generic methods in wcf service?</p>
  
  <p>I wrote this code:</p>
  
  <pre><code>[OperationContract]
  void AddItem&lt;T&gt;(T item);
  </code></pre>
  
  <p>But I receive the following Error:</p>
  
  <blockquote>
    <p>Type 'T' cannot be exported as a schema type because it is an open generic type. You can only export a generic type if all its generic parameter types are actual types.</p>
  </blockquote>