/// <summary> /// Clones this object. /// </summary> /// <returns>A clone of this object.</returns> public Object Clone() { ProductProps p = new ProductProps(); p.ID = this.ID; p.productCode = this.productCode; p.description = this.description; p.unitPrice = this.unitPrice; p.onHandQuantity = this.onHandQuantity; p.ConcurrencyID = this.ConcurrencyID; return(p); }
/// <summary> /// /// </summary> public void SetState(string xml) { XmlSerializer serializer = new XmlSerializer(this.GetType()); StringReader reader = new StringReader(xml); ProductProps p = (ProductProps)serializer.Deserialize(reader); this.ID = p.ID; this.productCode = p.productCode; this.description = p.description; this.unitPrice = p.unitPrice; this.onHandQuantity = p.onHandQuantity; this.ConcurrencyID = p.ConcurrencyID; }
/// <summary> /// Clones this object. /// </summary> /// <returns>A clone of this object.</returns> public Object Clone() { ProductProps p = new ProductProps(); p.ID = this.ID; p.ProductCode = this.ProductCode; p.Description = this.Description; p.UnitPrice = this.UnitPrice; p.OnHandQuantity = this.OnHandQuantity; p.ConcurrencyID = this.ConcurrencyID; return(p); }