|
by jokiz via jokiz : C# on 3/18/2005 12:24:00 AM
I’ve read this excellent article on Arrays of Jeffrey Richter from Wintellect at MSDN here and there are a number of good points in coding, the one I love most is the section on Passing and Returning Arrays.
If you always design your methods so that they return arrays with zero elements instead of null, then callers of your methods will have an easier time working with them. By the way, you should do the same for fields as well. If your type has a field that is a reference to an array, you shou
... [ read more ]
|
|