ICaramba

Miguel Castro's blog about .NET and its effect on National Security, the Eco-system, and his daughter's sleeping patterns.


News

My Stats

  • Posts - 122
  • Comments - 68
  • Trackbacks - 145

Twitter












Recent Comments


Recent Posts


Archives



Blogs I read


Links


Microsoft DCCs



I thought the DesignMode would work but I was wrong.

I tested for “running in VS” by testing for: 

if(System.Diagnostics.Debugger.IsAttached)

 

Stan Spotts just gave me this one:


public static readonly bool StartedFromVS = AppDomain.CurrentDomain.FriendlyName.EndsWith(".vshost.exe");

http://www.geekswithblogs.com/sspotts