DEV Community

Discussion on: No more NullReferenceException for Lists in C#

 
alialp profile image
Ali Alp

When you don't get , you don't get it.
let me demistify once more.
The conventional methods which any junior developer should be aware are crystal clear . The issue is why when you are trying to add to a list which is a member of a class and you already instantiated the class should throw an exception ?
It should instanciate the list object on the first add itself.