About

I am a software developer in Seattle, building a new AI software company.

Ads

August 2009

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          

Ads


« 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.