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

RFC_ERROR_SYSTEM_FAILURE with SAP ECC 6 Unicode

C# System.Data.Common DbCommand and getting Datasets from Oracle