title: Is it possible to have optional DataMembers in WCF?
body: <p>If I have the following class:</p>
  
  <pre><code>[DataContract]
  public class GetColorsRS
  {
      [DataMember(Name = "Colors", Order = 0, IsRequired=true)]
      public List&lt;Color&gt; Colors { get; set; }
  
      [DataMember(Name = "Errors", Order = 1, IsRequired=false)]
      public List&lt;Error&gt; Errors { get; set; }
  }
  </code></pre>
  
  <p>If no errors are found in the request, I want to send back a response that does not have an Errors node, however, it passes back an Errors node that is empty.  I thought this is what the IsRequired was for?</p>
  
  <p>Just noticed EmitDefaultValue, is this what I am looking for?</p>