© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
12mo ago
•
3 replies
0xcafebabe
difference between `struct` and `ref struct`
I got a little confused trying to understand the difference between a default
struct
struct
and a
ref struct
ref struct
, mainly about their behavior on stack and heap
. Can someone break it down for me
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Difference between class, struct and record
C
C# / help
3y ago
Builder Pattern as Ref Struct
C
C# / help
3y ago