+ 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
2 Respuestas
+ 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.
+ 1
thanks