[C#][중요] Class and Struct
- 출처 : ChatGPT 3.5 In C#, both structs and classes are used to define custom types, but they have some important differences in terms of their behavior and usage: Classes: Reference Types: Classes are reference types, meaning when you create an instance of a class, you're actually creating a reference to the object in memory. Heap Allocation: Objects of a class are allocated memory on the heap. ..