본문 바로가기

분류 전체보기

(4558)
해당 어셈블리가 Debug 빌드인지, Release 빌드인지 알아내는 방법 http://blog.naver.com/techshare/100150127754 위에서 퍼온 글입니다. 국내는 어떤지 모르겠지만, 해외의 경우에는 '서비스 중인 DLL'이 Debug 빌드된 것인지, Release 빌드된 것인지를 민감하게 여기는 경우가 있는 것 같습니다. 필요없이 성능에 손해되는 DLL 로 서비스할 이유는 없으니까요. 검색을 해보면, 생각보다 쉽게 방법을 찾을 수 있습니다. How to tell if a .NET application was compiled in DEBUG or RELEASE mode? ; http://stackoverflow.com/questions/194616/how-to-tell-if-a-net-application-was-compiled-in-debug-or-rel..
프로그래밍 언어 우선순위 [출처] C# 언어 ... 좋은데... 정말 좋은데... 뭐라 표현할 말이 없네... ^^|작성자 techshare
EneityFrame Key로 Delete하기 EntityFrameWork를 사용하여 Delete하기 using (clscEntities context = new clscEntities()) { foreach (var item in input) { tcl_process_category_study model = new tcl_process_category_study { category_no = item.CategoryNo, company_seq = companySeq, study_cd = item.ProcessCd, study_type = item.StudyType }; context.tcl_process_category_study.Attach(model); context.ObjectStateManager.ChangeObjectState(model, ..
Linq 에서Aggregate메서드 사용하기 데이터를 루핑을 돌아 특정 컬럼의 데이터를 스트링으로 연결할 일이 있었다 그래서 Aggregate메서드를 사용해 본다 string cities_string = cities.Aggregate(new StringBuilder(), (sb, c) => { if (0 != sb.Length) sb.Append(", "); sb.Append(c.Name); return sb; }, sb => sb.ToString());
dafsf asdfasf
테이블에서 체크박스에서 체크된 특별 컬럼들 가져오기 var tds =$('.테이블클래스 tr:has(:checkbox:checked) .td에준클래스'); 위와같이 하면 특정 td값들을 array로 가져올수 있다.
Windbg를 사용하기 .NET Breakpoint 설정하기 http://blogs.msdn.com/b/kristoffer/archive/2007/01/02/setting-a-breakpoint-in-managed-code-using-windbg.aspx 위에서 퍼온 글입니다. One of the great features of managed code is getting call stacks and proper class and member function names without debug symbols. We can examine the methods of a class and set breakpoints based on name. To see the methods on an object in Windbg we first need to find its meth..
WinForm에 Console붙이기 http://www.codeproject.com/Tips/319901/Attaching-a-Console-to-a-WinForms-application#alternative2 위에서 퍼온 글입니다. kernel32.dll에 AllocConsole이라는 함수를 사용하여 Console창을 붙일수 있습니다. 그리고 FreeConsole을 이용 하여 해제할수 있습니다. 그럼 코드를 보죠 using System;using System.Windows.Forms; namespace FormWithConsole { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Appli..