Introducing C# 10: Structs parameterless constructor and instance field initializer

added by DotNetKicks
2/21/2022 6:32:59 PM

241 Views

I'm going to talk in this post about an important feature of C# 10 that has gone rather unnoticed. In addition to record support on structs, C# 10 now allows what was previously only possible on classes: parameterless constructors The operation of constructors without parameters still differs on structs with C# 10 compared to classes.


0 comments