DEV Community

Discussion on: How to get rid of the `new` C# keyword

mrpmorris profile image
Peter Morris

Yes it can, but you can just as easily pass the wrong string value to your constructor.

It's not string to FirstName you are trying to prevent, it is FirstName to LastName.