title: WCF: How to serialize DataTable using DataContractSerializer?
body: <p>I have some wcf service:</p>
  
  <pre><code>[ServiceContract(SessionMode = SessionMode.Allowed)]
  public interface IMyService
  {
     [OperationContract]
     [TransactionFlow(TransactionFlowOption.Allowed)]
     FooResult GetFoo([NotNull] FooRequest request);
  }
  
  [DataContract(Name = "FooRequest", Namespace = "...")]
  public class FooRequest
  {
      [DataMember(IsRequired = true)]
      [NotNull]
      public DateTime From { get; set; }
  }
  </code></pre>
  
  <p>By this service svcutil generates types that serialize by DataContractSerializer. Now I add method that returns DataTable:</p>
  
  <pre><code>[OperationContract]
  [TransactionFlow(TransactionFlowOption.Allowed)]
  [FaultContract(typeof(IikoNetServiceFault))]
  System.Data.DataTable GetDataTable();
  </code></pre>
  
  <p>Now svcutils generate types that serialize all the types by XmlSerializer. But I need either all types (including DataTable) are serialized by DataContractSerializer or only DataTable is serialized by XmlSerializer, but other types are serialized by DataContractSerializer.</p>