Assignment “=” operator in VB.NET 1.1

前端 未结 3 597
后悔当初
后悔当初 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:52

    It's a reference copy, if the type is a reference type (ie: classes). If it's a value type (Structure), it will do a member by member copy.

提交回复
热议问题