1

I have a purchased VB.Net class with very bad documentation and I'm trying to understand how it works.

I executed some code and came up with a variable X(0) as shown in Visual Studio 2010 watch window :

Debugger

X(0) has some properties I would like to access : CustomPropertyStore.

I did

X(0).CustomPropertyStore(0) 

to get the first value but but it's throwing an error:

Public member 'CustomPropertyStore' on type 'BasePersistentClass' not found.

How come that, "CustomPropertyStore" is shown as a property of object X(0) and it's inaccessible ?

Thanks

4

1 回答 1

0

在 Visual Studio 监视窗口中,您可以展开对象并查看其属性。如果你在你的对象上尝试这个,你将能够看到这个属性是否存在。

此外,根据错误判断,您尝试访问的属性似乎可能是X. 如果是这种情况,请在监视窗口中尝试这样的操作(这是 C# 语法,抱歉,我不确定 VB 语法):

((MySubClassType)X(0)).CustomPropertyStore

如果成员是private,您将无法直接从监视窗口调用它。

于 2013-11-11T04:30:55.333 回答