public object Clone() { ProductProps p = new ProductProps(); p.ID = this.ID; p.quantity = this.quantity; p.code = this.code; p.price = this.price; p.description = this.description; p.ConcurrencyID = this.ConcurrencyID; return(p); }
/// <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); }
public object Clone() { ProductProps p = new ProductProps(); p.ID = this.ID; p.code = this.code; p.description = this.description; p.unitPrice = this.unitPrice; p.quantity = this.quantity; return(p); }
/// <summary> /// Clones this object. This is needed because IBaseProps /// has ICloneable, so it must be implemented in child class /// </summary> /// <returns>A clone of this object.</returns> public Object Clone() { ProductProps p = new ProductProps(); p.ID = this.ID; p.prodCode = this.prodCode; p.description = this.description; p.unitPrice = this.unitPrice; p.onHandQuantity = this.onHandQuantity; p.ConcurrencyID = this.ConcurrencyID; return(p); }
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.quantity = p.quantity; this.code = p.code; this.price = p.price; this.description = p.description; this.ConcurrencyID = p.ConcurrencyID; }