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

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'