topical media & game development

talk show tell print

professional-xml-15-Listing-15-8.txt / txt



  using System;
  using System.Collections.Generic;
  using System.Text;
  using System.Xml.Serialization;
  
  namespace XmlSerializationProject
  {
      public class StockOrder
      {
          private string _symbol;
          private int _quantity;
          private DateTime _OrderTime = DateTime.Now;
  
          public string Symbol
          {
              get { return _symbol; }
              set { _symbol = value; }
          }
  
          public int Quantity
          {
              get { return _quantity; }
              set { _quantity = value; }
          }
  
          [XmlElement(DataType = "date")] 
          public DateTime OrderTime
          {
              get { return _OrderTime; }
              set { _OrderTime = value; }
          }
      }
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.