in

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

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

タグによる表示

  • LINQ クエリをメソッドから収得する

    using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApplication5 { class Program { public class Class1 { public IEnumerable<int> GetQuery(ref int[ ints) { return from i in ints where i > 0 select i; } } static void Main(string[ args) { int[ dataSource = { 0, 1...
    投稿場所: ADO.NET / LINQ (Forum) 投稿者: ASANO 投稿日時: 2007/12/23
  • 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(); } } }
    投稿場所: ADO.NET / LINQ (Forum) 投稿者: ASANO 投稿日時: 2007/12/23
ページ 1 / 1 (2 アイテム)