Re: compile error problems

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
.