Thursday, April 10, 2003

It seems to me that the IsNullOrEmpty problem could be solved by changing String.Equals() to throw an ArgumentNullException if the argument passed is null. This would solve Miguel's complaint that Jesse's proposed solution masks bugs, but allows Jesse to write String.Empty.Equals(x) without checking x == null first.
10:25:40 AM  permalink Click here to send an email to the editor of this weblog. 


Stories
DateTitle
1/23/2003 Why XML?
8/13/2002 Resolution for IE and Windows problems
8/10/2002 Supporting VS.NET and NAnt
5/11/2002 When do you stop unit testing?
Contact
jabber: weakliem
YM: gweakliem
MSN: gweakliem@pcisys.net
email: Click here to send an email to the editor of this weblog.
Subscribe to "Gordon Weakliem's Weblog" in Radio UserLand.
Click to see the XML version of this web page.