[MonoDevelop] [help a mono newbie

Olivier Dagenais olivier.dagenais at gmail.com
Wed Nov 4 13:56:31 EST 2009


It looks like you need to add:

using System.Collections.Generic;

...at the top of your file, since that's where the generic version of
IEnumerable is found.

Also, you can try a web search for the error code at the end of the
message (in parenthesis - in this case it's "CS0246").  The
documentation from Microsoft is pretty good.

- Oli

>  Date: Wed, 4 Nov 2009 13:47:15 -0500
>  From: james goforth <jamgof08 at gmail.com>
>  Subject: [MonoDevelop] [help a mono newbie
>  To: monodevelop list <monodevelop-list at lists.ximian.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);
>                     }
>     }
>  }


More information about the Monodevelop-list mailing list