What’s the easiest way to get an OutOfMemoryException in C#? April 11, 2024 by Tarik void Foo() { throw new OutOfMemoryException(); } :)))