public override void DeserializeObject(List <string> data) { base.DeserializeObject(data); try { Durability = Convert.ToInt32(data[currentItemList]); data.RemoveAt(currentItemList); SpecialEffect = (TypesOfEffects)Enum.Parse(typeof(TypesOfEffects), data[currentItemList]); data.RemoveAt(currentItemList); } catch { throw new Exception(); } }
public NailPolish(string ProductName, string Brand, PriceCategory PriceCategoryOfProduct, Color Color, int Durability, TypesOfEffects SpecialEffect) : base(ProductName, Brand, PriceCategoryOfProduct, Color) { this.Durability = Durability; this.SpecialEffect = SpecialEffect; }