+ 4

What the heck are structures useful for?

Like, they're just dumbened down classes--I think. Other than creating new structure-objects when they are created, what are their purposes? https://code.sololearn.com/cN29yKPUHIeY/?ref=app

11th Jul 2017, 7:27 AM
fallOut015
fallOut015 - avatar
2 Respostas
+ 9
This article is provided by Microsoft to clarify when either would be preferred. https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/choosing-between-class-and-struct That said, MS has been known to deviate from their own suggestions.
11th Jul 2017, 7:37 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
thanks
11th Jul 2017, 7:37 AM
fallOut015
fallOut015 - avatar