private bool IsAssemblyDebugBuild(string filepath) { return IsAssemblyDebugBuild(System.Reflection.Assembly.LoadFile(System.IO.Path.GetFullPath(filepath))); } private bool IsAssemblyDebugBuild(System.Reflection.Assembly assembly) { foreach (var attribute in assembly.GetCustomAttributes(false)) { var debuggableAttribute = attribute as System.Diagnostics.DebuggableAttribute; if (debuggableAttribute != null) { return debuggableAttribute.IsJITTrackingEnabled; } } return false; }
'.Net > Winform' 카테고리의 다른 글
C# 중복 실행 방지 Mutex (0) | 2012.08.14 |
---|---|
C# DragDrop & DragEnter (0) | 2012.08.10 |
C# TextBox 실수만 입력받기 (0) | 2012.08.08 |
C# Winform에서 Cookie 설정 및 가져오기 (0) | 2012.08.07 |
C# 알림창 폼 (0) | 2012.08.07 |