Hi C# Learner,
Just one tip. You don't need to zero the elements of the array. They are
guarantee to be 0.
When your variables are class members or elements of arrays (not local
variables created in the stack) you have guarantees that those variables or
array members have their default values.
For numbers default is 0, bool default is *false*, for enums whichever is
first or has value number 0 and for references the default value is *null*.
B\rgds
100
"C# Learner" <cs****@learner.here> wrote in message
news:sk********************************@4ax.com...
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com>
wrote:
Arrays are reference types. Therefore, a reference is returned.
Wow, quick reply! Thankyou.