StackOverflowException in c# when no local variable in the function
- by dnkulkarni
when i do this
static void Main()
{
Main();
}
I receive stackoverflow exception. As i have read so far about C# they say ONLY local variable of value types (and short living ones) will go on stack.
But here in the code there are no local variable to go on stack then what overflows it ?
I know from assembly code line Perspective that reference to Main() will go on stack too ? Is that right ?