I’ve got this enum at the top of my instance class:
public Enum RecommendationPage
{
Search,
Cart
}
I’m using it in static methods or at least attempting to. I get the error “Accessor must declare a body because ‘property’ is not marked as abstract or extern”. This code is in a handler .ashx.
Make
enumlowercase. You’re telling the compiler that this is a property returning aSystem.Enum, but you haven’t specified thegetorsetpart of the property.