Based on the rich wealth of stackoverflow, I've been getting on and off answers on whether the tail recursive optimization is done to specifically c# code. A few of the questions appeared to talk about
- Speculation of the optimization in newer versions of .net that were being released
- Building application as a x64bit application to achieve the optimization
- Switching from a debug build to a release build in Visual Studio to achieve the optimization
- No optimization at all and that the microsoft community had claimed that they wouldn't do tail recursive optimization for "security issues" (didn't really understand this one)
- It happens by random
So as of C# 4.0 (Visual Studio 2013/2015) how does one ensure the tail recursive optimization if one can ensure it at all?