I have a problem with my code. I finally got it so there were no errors, but now i have to deal with stackoverflow...
can someone tell me what is wrong with my code?
public Matrix Projection
{
get { return Projection; }
protected set
{
Projection = value;
generateFrustum();
}
}
It would be nice if you could help!
thanks
Your set method calls itself:
Projection = value
.When you use following form:
you don't need to specify variable to store actual value, but when you implement get or set explicitly you should declare additional variable and use it in get, set implementations.