[Mono-list] generics and IEnumerable
Michael Hutchinson
m.j.hutchinson at gmail.com
Mon Jan 24 01:25:53 EST 2011
On Jan 24, 2011 12:58 AM, "oddstray" <withheld.for.privacy at gmail.com> wrote:
>
> My immediate question is, I tried to create a generic class:
> public class LinkedList<T> : IEnumerable<T>
> but I get the error:
> "The non-generic type 'System.Collections.IEnumerable' cannot be used
> with the type arguments".
> I have a "using System.Collections;" statement higher up. Am I doing
> something wrong?
Yes. The generic IEnumerable<T> is in System.Collections.Generic, not
System.Collections.
> My general question is, how can I determine which .NET features are
> implemented in MonoDevelop?
To clarify, MonoDevelop is an IDE, the equivalent of Visual Studio. The
runtime, which is what actually runs your app (the equivalent of .NET), is
Mono. MonoDevelop on Windows even uses .NET :)
You can view the status of the Mono class libraries at
http://go-mono.com/status/
Beware that this corresponds to the latest development version, not the
release version that you'll be using, so you might just have to 'try and
see' in some cases.
- M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110124/21dc340d/attachment.html
More information about the Mono-list
mailing list