[Mono-list] generics and IEnumerable

oddstray withheld.for.privacy at gmail.com
Mon Jan 24 00:58:24 EST 2011


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?

My general question is, how can I determine which .NET features are
implemented in MonoDevelop?

Background:
I'm using MonoDevelop 2.4 on an iMac running Mac OSX 10.6.6.  I'm working my
way through the Wrox book "Professional C# and .NET 4".  I hope to use
MonoDevelop as far as I can, since using VmWare or Parallels to run the
VisualStudio tools is slower and more of a hassle.

Thanks in advance ...
-- 
View this message in context: http://mono.1490590.n4.nabble.com/generics-and-IEnumerable-tp3233385p3233385.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list