find out that Visual Studio is attached
Published: 30. September 2011 | Updated: 26. October 2011License: Microsoft Public License (MS-PL)
Categories: Debug
Tags: C# Debug Visual Studio
Import namespace
using System.Diagnostics;
Code
if(Debugger.IsAttached) { ... }
| Send us feedback about this snippet » |





