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 StudentManager.Models;
- namespace StudentManager.Operations
- {
- public class ShowStudents
- {
- private StudentFileManager studentFileManager = new StudentFileManager();
- public void Show()
- {
- List<Student> students = studentFileManager.Load();
- int studentCount = students.Count();
- for (int i = 0; i < studentCount; i++)
- {
- string studentRow = $"{i}. Imię: {students[i].FirstName}\tNazwisko: { students[i].LastName}\tPesel: { students[i].Pesel}\tWiek: { students[i].Age}\n";
- Console.WriteLine(studentRow);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement