Skip to main content

Topic

default

1 article

Preview image blogpost

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?

Read article

An error has occurred. This application may no longer respond until reloaded.Reload x