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

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to send non-standard Content-Type header ?