Are C# Collections value types or reference Types? -


i busy learning c# here, c# collections value types or reference types?, since arrays reference types , know strings reference types well.

thank you.

you create value type collection (so struct mycollection<t> : ienumerable<t>), useless (because make read-only, , simple, or try make mutable, difficult make "value-type" copiable, copy of collection distinct entity original) (and note still useless, because if use value type through 1 if interfaces, box it). in end, don't :-)

all .net "stock" collections can remember reference types. arrays, list<>, arraylist, dictionary<,>, ...


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -