16 years, 7 months ago
Highlights
16 years, 7 months ago
Quote:Original post by dmatterNice explanation, dmatter. Many thanx ;)
16 years, 7 months ago
Hi guys, I've started study c# a few days ago and I'm wondering what's the best practice (general) when you have something like this: class MyClass { List<AnotherCustomClass&…
16 years, 7 months ago
Quote:Original post by adt7They can still modify the contents of the list by only exposing get. They simply lose the ability to to do class.MyList = new List<>() or c…
16 years, 7 months ago
16 years, 7 months ago
Latest Activity
See all in DiscussionsQuote:Original post by dmatterNice explanation, dmatter. Many thanx ;)
16 years, 7 months ago
Quote:Original post by adt7They can still modify the contents of the list by only exposing get. They simply lose the …
16 years, 7 months ago
Quote:Original post by adt7Why do you need to expose the set accessor publicly on your List?Initialise the list in your …
16 years, 7 months ago