« Equality Testing in NUnit | Main | Colors Undocumented »

February 20, 2004

Comments

Adam Kinney

Nice one. I had thought of the string solution but not the static empty array.

Thanks for the tip.

Simon Stewart

My only problem with checking for an empty array is that I'm then trusting the class to return either an empty or full array and never a null.

The IsNullOrEmpty function for strings looks really useful, but surely there is a big potential for bugs if you are accessing an object (an array) without checking for nullref?

The comments to this entry are closed.

My name is Wesner Moise. I am a software entrepreneur developing revolutionary AI desktop applications. I worked as a software engineer in Microsoft Excel group for six years during the 1990s. I worked on PivotTables and wrote the most lines of code in Excel 97-- about 10 times the median developer. I have a Harvard BA in applied math/computer science and a UCLA MBA in technology entrepreneurship. I am a member of the Triple Nine Society, a 99.9 percentile high-IQ society.

December 2013

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31