I have a class like this
public class MyClass
{
public MyClass()
{
Enumlist = new List<MyEnum>();
}
public virtual List<MyEnum> Enumlist { get; set; }
}
and the enum is
public enum MyEnum
{
Enum1=1,
Enum2=2,
Enum3=3
}
but in my view i keep having this eror
"The value 'System.Collections.Generic.List`1[MyEnum]' is not valid for Enumlist"
I did not specify any validation attribute for the property EnumList, so i don't why the automatic error.
Please, can someone help with this?