[MonoDevelop] [help a mono newbie
Daniel Soto
daniel.soto2k at gmail.com
Wed Nov 4 13:54:20 EST 2009
You need add a reference to System.Core in monodevelop to do a linq query to
object.
2009/11/4 james goforth <jamgof08 at gmail.com>
> [Task:File=/home/james/Projects/asdf2/asdf2/Main.cs, Line=12, Column=25,
> Type=Error, Priority=Normal, Description=The type or namespace name
> `IEnurmerable`1' could not be found. Are you missing a using directive or an
> assembly reference?(CS0246)]
>
> Can anyone tell me how to add assembly reference to a mono solution?I am
> trying to use system.linq to write the following prog
> using System;
> using System.Linq;
>
> namespace asdf2
> {
>
> class MainClass
> {
> string[] names = {"Tom","Dick","Harry","Mrk","Sebastian"};
> public static void Main(string[] args)
> {
> IEnurmerable<string> query =
> from n in names
> let vowelless = Regex.Replace(n,"[,a,e,i,o,u]","")
> where vowelless.Length > 2
> orderby vowelless
> select n + " - " + vowelless;
> Console.WriteLine(vowelless);
> }
> }
> }
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20091104/45072ff4/attachment.html
More information about the Monodevelop-list
mailing list