Laufen wir in der IDE?

Unter .NET kann man prüfen, ob das hier wahr ist:

System.Diagnostics.Debugger.IsAttached
System.Diagnostics.Debugger.IsAttached

Falls ja, befinden wir uns in der IDE. Ansonsten sind wir ein Kompilat (nein, kein Kombinat, das war etwas anderes…)

Kommentar schreiben

0 Kommentare.

Kommentar schreiben

* Copy this password:

* Type or paste password here:

52 Spam Comments Blocked so far by Spam Free Wordpress


Hinweis - Du kannst dies benutzenHTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" extra="">