C Net executable, release version or debug version

From , 5 Years ago, written in C#, viewed 66 times.
URL https://pastebin.vip/view/44012e79
  1. Assembly assembly = Assembly.GetAssembly(GetType());
  2. bool debug = false;
  3. foreach (var attribute in assembly.GetCustomAttributes(false)){
  4.   if (attribute.GetType() ==  typeof(System.Diagnostics.DebuggableAttribute)){
  5.     if (((System.Diagnostics.DebuggableAttribute)attribute)
  6.         .IsJITTrackingEnabled){
  7.       debug = true;
  8.       break;
  9.     }
  10.   }
  11. }
  12.  
  13.  
  14. //csharp/5912

Reply to "C Net executable, release version or debug version"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website