title: Missing fields when serializing .NET object
body: <p>I am having a problem with serializing an object in C#. When the application goes to serialize the object, certain fields get serialized but others do not. In the following code:</p>
  
  <pre><code>/// &lt;remarks/&gt;
  [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
  [System.SerializableAttribute()]
  [System.Diagnostics.DebuggerStepThroughAttribute()]
  [System.ComponentModel.DesignerCategoryAttribute("code")]
  [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
  public partial class ACORDInsuranceSvcRqHomePolicyQuoteInqRq
  {
  
      private string rqUIDField;
  
      private System.DateTime transactionRequestDtField;
  
      private System.DateTime transactionEffectiveDtField;
  
      private string curCdField;
  
      /// &lt;remarks/&gt;
      public string RqUID
      {
          get
          {
              return this.rqUIDField;
          }
          set
          {
              this.rqUIDField = value;
          }
      }
  
      /// &lt;remarks/&gt;
      public string CurCd
      {
          get
          {
              return this.curCdField;
          }
          set
          {
              this.curCdField = value;
          }
      }
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlIgnore()]
      public System.DateTime TransactionRequestDt
      {
          get
          {
              return this.transactionRequestDtField;
          }
          set
          {
              this.transactionRequestDtField = value;
          }
      }
  
      /// &lt;remarks/&gt;
      [XmlElement("TransactionRequestDt")]
      public string TransactionRequestDtString
      {
          get
          {
              return String.Format("{0:yyyy-MM-dd}", this.TransactionRequestDt);
          }
      }
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlIgnore]
      public System.DateTime TransactionEffectiveDt
      {
          get
          {
              return this.transactionEffectiveDtField;
          }
          set
          {
              this.transactionEffectiveDtField = value;
          }
      }
  
      /// &lt;remarks/&gt;
      [XmlElement("TransactionEffectiveDt")]
      public string TransactionEffectiveDtString
      {
          get
          {
              return String.Format("{0:yyyy-MM-dd}", this.TransactionEffectiveDt);
          }
      }
  }
  </code></pre>
  
  <p>you can see that the Fields/Accessors RqUID and CurCd get called but TransactionRequestDtString and TransactionEffectiveDtString do not. I need all of these to be serialized. Thanks!</p>