How do I reliably tell that two Inspector references point to the same inspector instance?

蓝咒 提交于 2019-12-06 16:34:04

I now found that comparing Inspector.CurrentItem.CreationTime was sufficiently reliable for me.

You could also use the Is operator to see if two object references are referring to the same object.

Ex:

Debug.Print InspectorObj1 Is InspectorObj2

This will print True to the Immediate Window if both references refer to the same Inspector.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!