Find használata
This commit is contained in:
@@ -38,6 +38,17 @@
|
||||
|
||||
Tanulo tanulo = tanulok.Find(x=>x.Vezeteknev==inVezeteknev && x.Keresztnev==inKeresztnev);
|
||||
|
||||
if (tanulo!=null)
|
||||
{
|
||||
Console.WriteLine($"{tanulo.Vezeteknev} {tanulo.Keresztnev}");
|
||||
} else
|
||||
{
|
||||
Console.WriteLine("Nincs ilyen tanuló!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user