Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Validator;
- namespace hetfo_gyakorlas
- {
- class Program
- {
- static void Main(string[] args)
- {
- foreach (var item in Loader2())
- {
- Console.WriteLine($"{item.Szolgaltato} {item.Netsebesseg}");
- }
- Console.ReadLine();
- }
- static List<Person> Loader()
- {
- List<Person> people = new List<Person>();
- int counter = -2;
- for (int i = 0; i < 10; i++)
- {
- Person person = new Person($"Pista{i}", counter);
- if (ValidatorClass.Validation(person))
- {
- people.Add(person);
- }
- counter++;
- }
- return people;
- }
- static List<Internet> Loader2()
- {
- List<Internet> people = new List<Internet>();
- int counter = -2;
- for (int i = 0; i < 10; i++)
- {
- Internet person = new Internet($"Digi{i}", counter);
- if (ValidatorClass.Validation(person))
- {
- people.Add(person);
- }
- counter++;
- }
- return people;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement