Created
January 2, 2021 20:50
-
-
Save ouzdev/bd76733144f0a0cd855ef0e3c873a2c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Product tipinde listemizi oluşturup ürünleri ekledik. | |
List<string> products = new List<string> | |
{ | |
"Sony Playstation 5 Oyun Konsolu", | |
"Xbox Series S Oyun Konsolu", | |
"Monster Abra A5 V9.2.2 Laptop", | |
"Xiomia Mi Band 5 Akıllı Biileklik", | |
"Sandisk Ultra 3D 500 GB Nvme SSD" | |
}; | |
// products koleksiyonunda "X" harfiyle başlayan kayıtları listeleme. | |
var result = from p in products | |
where p.StartsWith("X") | |
select p; | |
Console.WriteLine("************** Sonuç ******************"); | |
//Sonuçları ekrana basalım. | |
foreach (var item in result) | |
{ | |
Console.WriteLine(item); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment