public void Input(int id, string name, long area, int population, Mainland mainland) { this.name = name; this.name = name; this.area = area; this.population = population; this.mainland = mainland; }
public Country(int id, string name, long area, int population, Mainland mainland) { this.id = id; this.name = name; this.name = name; this.area = area; this.population = population; this.mainland = mainland; }
public TreeInformation GetOrAddTreeInfo(TreeColor color, TreeType treeType, Mainland mainland) { var treeData = treeDatas.FirstOrDefault(t => t.Color == color && t.TreeType == treeType && t.Mainland == mainland); if (treeData != null) { return(treeData); } var newTreeData = new TreeInformation() { Color = color, TreeType = treeType, Mainland = mainland }; treeDatas.Add(newTreeData); return(newTreeData); }