[Mono-dev] Linq sample?

pablosantosluac pablosantosluac at terra.es
Sun Sep 23 07:46:52 EDT 2007


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)

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

Any suggestions?



More information about the Mono-devel-list mailing list