.NET의 Attribute는 Metadata의 일종이다.

그러하다.

custom exception 만들기.

사실 좋은 프로그램(프레임웍)일 수록 익셉션 처리에 공을 많이 들인다. 커스텀 익셉션을 만들 때 이름 뒤에 접미사 Exception 붙여아 한다. System.ApplicationException을 상속해선 안 된다. 원래는 커스텀 익셉션은 이것을 상속하도록 하는 것이 설계 의도였는데, 실제로는 그렇게 안 됐다는군...  참고

try...catch...finally에서 finally{} 블럭이 실행되지 않고 프로세스를 종료시키는 방법

Enviroment.FailFast  가 호출되면 프로세스가 바로 끝난다. 호오~.

필수 Visual Studio Add-in 혹은 Extension

Productivity Power Tools PowerCommands for Visual Studio 2010 Regex Tester ReSharper   ReSharper의 경우 돈 주고 살만한 프로그램이다. 겨우 150$. 다른 확장프로그램들은  http://visualstudiogallery.msdn.microsoft.com/  참고. 자고로 프로그래머는 게으름이 미덕이다. 참 좋은 세상이다.

.NET에서 워커(worker) 스레드의 Abort() 호출하면 하면 바로 중지?

Thread.Abort() 혹은 Thread.Suspend()를 호출하면 바로 즉시 멈출까요? 아닌것 같네요. Safe Points Most of these methods are self-explanatory, but the concept of  safe points  may be new to you. Safe points are locations in code where it is safe for the common language runtime to perform automatic  garbage collection , the process of releasing unused variables and reclaiming memory. When you call the  Abort  or  Suspend  method of a thread, the common language runtime analyzes the code and determines the location of an appropriate location for the thread to stop running. http://msdn.microsoft.com/en-us/library/vstudio/ck8bc5c6.aspx CLR이 Safe Points를 찾아서, 그곳에서 멈춘다네요.

SQL Server 2008에서 좋아진 Values 구문

Interesting enhancements to the VALUES Clause in SQL Server 2008 스칼라 값들을 Values에 여러개 묶어서 테이블 흉내를 내는 기능이 귀엽다.

나눔고딕으로 크롬 기본 폰트 바꾸기

이미지
네이버에서 다운 받아 설치 설정 > 고급설정에서 기본 폰트를 나눔고딕으로 바꾸기 훨 깔끔하군.