[Solved] Why do I get a StackOverflowException with my property?


This produces a stack-overflow, because there is a recursive call on the hour, when you try to get it.

Here t.hour, you try to get the value of hour. This we call the getter, which returns hour / 3600. This will call again the hour and so on and so forth, until the stack will overflow.

solved Why do I get a StackOverflowException with my property?