C# Reference type assignment VS value type assignment

后端 未结 6 1381
自闭症患者
自闭症患者 2020-12-06 22:27

I understand the theoretical concept that assigning one reference type variable to another, only the reference is copied, not the object. assigning one value type variable t

6条回答
  •  春和景丽
    2020-12-06 23:07

    The first code snippet contains Employee which is a class and in the second one, Employee is a struct

提交回复
热议问题