I\'ve run into a really interesting runtime bug which generates a rogue stack overflow.
I\'ve defined a structure as follows:
public enum EnumDataTy
public long DataSize { get { return 0; } set { DataSize = value; } }
You are constantly setting the value of DataSize
. You need to create a local variable and use that instead. e.g.
private long dataSize;
public long DataSize
{
get { return this.dataSize; }
set { this.dataSize = value; }
}
EDIT
I've written DataSize
but the same applies to DataType