Initializing Arrays


if create string array should initialize whit string.empty or there not performance , memory issues if dont initialize it?

 

kenny

 kymaita wrote:

if create string array should initialize whit string.empty 

only if  that's waht want values be, , you're not happy default value (null).

 kymaita wrote:

or there not performance , memory issues if dont initialize it?

explicitly initializing elements slower not doing so.

 



.NET Framework  >  Common Language Runtime Internals and Architecture



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

How to Share webservice object to all user

How to fix error Msg 1801, Level 16, State 3, Line 1