Why this code is throwing StackOverflowException and not OutOfMemoryException?
I have the following code and its throwing StackOverflowException because of nested constructor call, and I know memory gets allocated only when constructor runs successfully.
Why this code is throwing StackOverflowException and not OutOfMemoryException?
I have the following code and its throwing StackOverflowException because of nested constructor call, and I know memory gets allocated only when constructor runs successfully.