static void Main(string[] args) { GameIndusrty.anyTime(); GameIndusrty game = new GameIndusrty("312", 32, 'c'); ArrayList arrayList = new ArrayList(); arrayList.Add(game); arrayList.RemoveAt(2); int r = arrayList.Count; foreach (object o in arrayList) { GameIndusrty Gare = (GameIndusrty)o; if (Gare.point == 3) { break; } } Console.WriteLine(arrayList.ToString()); Console.WriteLine(arrayList.GetType()); Console.WriteLine(arrayList); }
public GameIndusrty(GameIndusrty gameindusrty) { this.point = gameindusrty.point; this.role = gameindusrty.role; this.GameName = gameindusrty.GameName; }