[Mono-dev] Linq status

pablosantosluac pablosantosluac at terra.es
Mon Sep 24 09:41:24 EDT 2007


Hi!

I was wondering which is the current Linq status in mono.

 I've downloaded and compiled the olive project, and now I have the
System.Data.Linq assembly but I was wondering how should I write a Linq
sample in mono.

I didn't find a sample or test in the code to start up with.

I tried this one from msdn, but I guess I'm doing something wrong because I
wasn't able to compile it.

using System;
using System.Linq;
using System.Collections.Generic;

class app {
  static void Main() {
    string[] names = { "Burke", "Connor", "Frank",
                       "Everett", "Albert", "George",
                       "Harris", "David" };

    IEnumerable<string> query = from s in names
                               where s.Length == 5
                               orderby s
                               select s.ToUpper();

    foreach (string item in query)
      Console.WriteLine(item);
  }
}


I'm just interested in "in-memory" queries.

Any suggestions?

Thanks,

pablo





More information about the Mono-devel-list mailing list