Hi there,
Looks like you missed part of step 2 on page 286:
"Once the file opens,
clear its contents and add the following code to it:"
It seems that instead of clearing the file, you nested the enum inside the class. It also works, but a) the class can't have the same name as the nested enum, and b) you need to prefix the enum with the class name.
There's not much point (in this case) in doing so, so make sure your enum file only contains this:
Code:
public enum Direction
{
Horizontal,
Vertical
}
Cheers,
Imar