Search
Feedback
Setup for Free
C
C#
•
3y ago
•
120 replies
Lvgraef
❔ Struct vs Class
When do i use a struct vs a class
, There seems to be pretty much no difference between the two except for really small things
, what i want is composition
, so idk if that helps
. i think a struct is waht i should use for that right
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,361
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Next page
Similar Threads
Hide private partial class/struct members
C
C# / help
2y ago
Yet another question about struct & class
C
C# / help
2y ago
Difference between class, struct and record
C
C# / help
3y ago
List<> struct Enumerator vs array enumerator
C
C# / help
2mo ago