I am not sure what is causing the StackOverflowException when I try to overwrite a get and set function. When I just use the default get and set it works.
enum MyEnumType
{
....
}
public MyEnumType data { get; set; }
But when I try to add additional data, it throws a StackOverflowException
public MyEnumType data
{
get
{
return data;
}
set
{
data = value;
}
}
Any ideas? When I do this for asp .net user control attributes there is no problem. I am wondering why it is causing a StackOverflowException for a normal enum data type.