in

@Prog! - ASP.NET(C#) AJAX -

ASP.NET(C#) 2.0 & ASP.NET Ajax (ATLAS) のメモ書き

LINQ クエリ式

最新の投稿は、投稿日時: 2007/12/23 10:28 投稿者: ASANO です。スレッドには 0 件の返答があります。
ページ 1 / 1 (1 アイテム)
投稿の並べ替え: 前へ 次へ
  • 2007/12/23 10:28

    LINQ クエリ式

    using System;
    using System.Linq;

    namespace ConsoleApplication5
    {
        class Program
        {
            static void Main(string[ args)
            {
                int[ dataSource = new int[5] { 0, 1, 2, 3, 4 };

                var rows = from s in dataSource where s > 0 select s;

                foreach (int i in rows) Console.WriteLine(i);

                Console.Read();
            }
        }
    }

    タグ: , ,
ページ 1 / 1 (1 アイテム)