깊은 복사1 [C#] 깊은 복사 vs 얕은 복사 깊은 복사 [ Deep Delipcate ] [Deep Copy] : 데이터의 값 전체를 복사하는 것 얕은 복사[ Short Delipcate ] [Shallow Copy] : 참조를 복사하는 것 예시문 Struct VectorStruct { public float x; public float y; public Vectorstruct (float x , float y) {this.x = x;this.y = y;} } class VectorClass { public float x; public float y; public VectorClass (float x , float y) {this.x = x;this.y = y;} } main () {VectorStruct d1 = n.. 2024. 11. 26. 이전 1 다음