public IEnumerable <Computer> ViewGameByTypeVideocard(TypeVideocard selectTM) { foreach (Computer curcomp in _objs) { if (curcomp is Game game) { if (game.Videocard == selectTM) { yield return(curcomp); } } } }
public Game(string Maker, TypeProcessor Processor, int ram, TypeDrive Drive, TypeVideocard Videocard, double Power) : base(Maker, Processor, ram, Drive) { this.Videocard = Videocard; this.Power = Power; Console.WriteLine($"Maker:{Maker}/ Processor: {Processor}/ Ram: {ram}gb/ Drive: {Drive}/Videocard: {Videocard}/ Power: {Power} tflops"); }