Re: compile error problems
- From: "Jon Skeet [C# MVP]" <skeet@xxxxxxxxx>
- Date: Wed, 18 Jun 2008 07:58:10 -0700 (PDT)
On Jun 18, 3:25 pm, "Tony" <johansson.anders...@xxxxxxxxx> wrote:
I get the following compile error below in the complete program below.
Any suggestion
Error 1 Using the generic type 'System.Collections.Generic.IEnumerator<T>'
requires '1' type arguments
C:\tony\ConsoleApplication15\ConsoleApplication15\Program.cs 80 9
ConsoleApplication15
It's hard to say for sure because you haven't included your using
directives, but I suspect the problem is that you're missing:
using System.Collections;
That's required to let the compiler know about the nongeneric
IEnumerator type.
After that you'll need to add a Feed method to Animal.
Jon
.
- References:
- compile error problems
- From: Tony
- compile error problems
- Prev by Date: Re: To New(EventHandler) or !To New(EventHandler)
- Next by Date: RE: DllImport for C function with var args
- Previous by thread: compile error problems
- Next by thread: RE: DllImport for C function with var args
- Index(es):