Search code examples
c#.netstack-overflow

How to produce a StackOverflowException with a few lines of code?


How can I produce a StackOverflowException with minimal lines of code?


Solution

  • Like this:

    A() { new A(); }