Strona głównaSztuka programowania

10.18.13 by MJ Short post about searching List. There are 3 most popular methods: foreach, delegate and lambda expression. I will introduce all of them. Let’s say that we have List which stores cars. Car has 2 properties – brand and model. var listOfCars = new List { new Car() { Brand = "Car1Brand", Model = "Car1Model" }, new Car() { Brand = "Car2Brand", Model = "Car2Model" }, new Car() { Brand = "Car3Brand", Model = "Car3Model"...

Tagi: Lambda
Dziel się z innymi:
[EN] World of IT | Searching for a specified instance in List

Sztuka programowania 4042 dni, 13 godzin, 2 minuty temu jedmac 120 pokaż kod licznika zwiń

Wczytywanie artykułów...