I\'m not sure why i\'m getting this error to be honest.
private int hour { get; set { //make sure hour is positive if (value <
I got the same error message because I had a function with a parameter named with a reserved word.
public int SaveDelegate(MyModel.Delegate delegate)
Renaming the variable delegate solved the problem.