Monday, April 2, 2007

C# Reflection Example - Debug or Release?

Use .NET reflection to gather information about the current application.

For example, to verify whether the current application was compiled in release or debug mode:

  1. Inspect the Attributes collection of the Assembly object specified by a dll path.
  2. Find the Attribute of type DebuggableAttribute.
  3. Check that Attribute's IsJITTrackingEnabled property.

Here is a link to the code.

I used it to display the compile mode in an About screen:


Adi said...

Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa

price per head said...

Great site!!! this information really helped me

price per head call center said...

Good posting, im subscribing to your rss. Thanks for sharing a very informative article. Many thanks once more

Prudence said...

Wow, there is a lot of effective info in this post!