Assignment “=” operator in VB.NET 1.1

前端 未结 3 599
后悔当初
后悔当初 2021-01-16 00:25

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:50

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

提交回复
热议问题