Hasan Akpürüm
Kıdemli Yazılım Danışmanı
Makele Detayı

Linq Reverse

6/30/2012 11:42:00 AM
public void Linq39() {
    string[] digits = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" };

    var reversedIDigits = (
        from digit in digits
        where digit[1] == 'i'
        select digit)
        .Reverse();

    Console.WriteLine("A backwards list of the digits with a second character of 'i':");
    foreach (var d in reversedIDigits) {
        Console.WriteLine(d);
    }
}
Sonuç : Sadece ikinci harfi 'i' olanları çekmiş olduk.
A backwards list of the digits with a second character of 'i':
nine
eight
six
five
Yorum yaz

Thanks, your message is sent successfully.

cheap air max cheap air jordans pompy wtryskowe cheap nike shoes bombas inyeccion cheap jordans cheap jordan shoes wholesale jordans cheap jordan shoes cheap jordans cheap nike shoes wholesale jordans cheap wholesale jordans cheap wholesale nike cheap wholesale jerseys big size jordans