default(MyStruct) vs new MyStruct() - what is the difference?
There are multiple ways to create a new struct, either via var myStruct = default(MyStruct)
or via var myStruct = new MyStruct();
. Are there any differences?
There are multiple ways to create a new struct, either via var myStruct = default(MyStruct)
or via var myStruct = new MyStruct();
. Are there any differences?