Esempio n. 1
0
        public object Clone()
        {
            CustomerProp p = new CustomerProp();

            p.ID            = this.ID;
            p.Name          = this.Name;
            p.Address       = this.Address;
            p.City          = this.City;
            p.State         = this.State;
            p.Zipcode       = this.Zipcode;
            p.ConcurrencyID = this.ConcurrencyID;
            return(p);
        }
Esempio n. 2
0
        public void SetState(string xml)
        {
            XmlSerializer serializer = new XmlSerializer(this.GetType());
            StringReader  reader     = new StringReader(xml);
            CustomerProp  p          = (CustomerProp)serializer.Deserialize(reader);

            this.ID            = p.ID;
            this.Name          = p.Name;
            this.Address       = p.Address;
            this.City          = p.City;
            this.State         = p.State;
            this.Zipcode       = p.Zipcode;
            this.ConcurrencyID = p.ConcurrencyID;
        }