Assignment “=” operator in VB.NET 1.1

前端 未结 3 592
悲&欢浪女
悲&欢浪女 2021-01-16 00:26

I\'m \"cloning\" objects in my code. For instance:

objClone = objOriginal

My question is:

  1. Does the assignment operator in VB
3条回答
  •  情话喂你
    2021-01-16 00:43

    I'm not sure about VB, but the C# version of assignment only does a shallow copy. (Edit: For reference types).

提交回复
热议问题