String.IsNullOrEmpty() 더 잘 활용해보자
http://blog.yesnobox.com/post/Better-stringIsNullOrEmpty().aspx
우리가 자주 사용하는 string.IsNullOrEmpty()
다들 이 메소드를 사용하면서 익숙해졌겠지만.
아마도 한번쯤 이런생각을 했을지 모른다.
str.ToString() 처럼 object내의 메소드로 만들지 않고 왜 Class의 static 메소드로 만들었을까?
str.IsNullOrEmpty()로 사용하면 편할텐데.. ?
위 주소에 위와 같은 생각을 해결해 줄 수 있다.
'Development > .NET' 카테고리의 다른 글
| Memory usage of current thread on C# windows form app. (0) | 2009.04.23 |
|---|---|
| C# : TextBox Auto Scrolling (2) | 2009.04.20 |
| C# - Length unit class , 길이 관련 클래스 (0) | 2009.04.10 |
| Error Handling Guide - Rethrow to preserve stack details (0) | 2009.04.03 |
| A .NET library for OpenFlashChart control (0) | 2009.03.29 |