I have a method of type IEnumerable in one of my classes:
protected virtual IEnumerable<T> GetSomething(CrudOptions crudOptions)
{
...
}
Somewhere in the solution I have defined CrudOptions as:
namespace myProject.Enums
{
public enum CrudOptions { Delete, Update, Read, Create }
}
When I'm trying to add the method in my class to an already existing interface class, it tells me I can't do it because the type or namespace CrudOptions could not be found.
This is what I'm adding to the interface class:
IEnumerable<SomeTypeClass> GetSomething(CrudOptions crudOptions);
Am I having this problem because I'm not referencing the CrudOptions type properly, or in an interface I'm not allowed to use a defined type?
using myProject.Enumsstatement?IEnumerable<SomeTypeClass> GetSomething(myProject.Enums.CrudOptions crudOptions);