How do I clone a Dictionary object?

后端 未结 2 886
我寻月下人不归
我寻月下人不归 2021-01-17 20:33

I have a Dictionary object in VBScript. How can I copy all the objects contained in it to a new Dictionary, i.e. create a clone/duplicate of the di

2条回答
  •  暖寄归人
    2021-01-17 21:13

    Take a look at the accepted answer in VBScript: How to utiliize a dictionary object returned from a function?. Could be a solution if a reference is all that is being looked for.

    Edit As per Ekkehard.Horner's comment, I understand now that this is not cloning, but may help others who are only looking for a reference to the original object.

提交回复
热议问题