public override List <string> GetProperties(plant plant) { var values = base.GetProperties(plant); values.Add((plant as tree).leavesType); return(values); }
public override void SetProperties(plant plant, List <string> values) { base.SetProperties(plant as birch, values); (plant as birch).age = Int32.Parse(values[3]); plant.name = "Birch"; }
public override List <string> GetProperties(plant plant) { var values = base.GetProperties(plant); values.Add((plant as birch).age.ToString()); return(values); }
public override List <string> GetProperties(plant plant) { var values = base.GetProperties(plant); values.Add((plant as spruce).color); return(values); }
public override void SetProperties(plant plant, List <string> values) { base.SetProperties(plant as spruce, values); (plant as spruce).color = values[3]; plant.name = "Spruce"; }
public override List <string> GetProperties(plant plant) { var values = base.GetProperties(plant); values.Add((plant as coriander).recipe); return(values); }
public override void SetProperties(plant plant, List <string> values) { base.SetProperties(plant as coriander, values); (plant as coriander).recipe = values[5]; plant.name = "coriander"; }
public override List <string> GetProperties(plant plant) { var values = base.GetProperties(plant); values.Add((plant as cannabis).kind); return(values); }
public override void SetProperties(plant plant, List <string> values) { base.SetProperties(plant as cannabis, values); (plant as cannabis).kind = values[5]; plant.name = "Cannabis"; }
public override void SetProperties(plant plant, List <string> values) { base.SetProperties(plant as tree, values); (plant as tree).leavesType = values[2]; plant.name = "Tree"; }
public override void SetProperties(plant plant, List <string> values) { base.SetProperties(plant as grass, values); (plant as grass).type = values[2]; (plant as grass).weight = Int32.Parse(values[3]); (plant as grass).price = Int32.Parse(values[4]); plant.name = "Grass"; }
public virtual List <string> GetProperties(plant plant) { var values = new List <string>(); values.Add(plant.height.ToString()); values.Add(plant.origin); return(values); }
public override List <string> GetProperties(plant plant) { var values = base.GetProperties(plant); values.Add((plant as grass).type); values.Add((plant as grass).weight.ToString()); values.Add((plant as grass).price.ToString()); return(values); }
public virtual void SetProperties(plant plant, List <string> values) { plant.height = Int32.Parse(values[0]); plant.origin = values[1]; }