Posted 18 years ago
by Jeff Hutt
-
Blade Games World
The following testcase demonstrates a bug with the processing of "this." vs "base.".
Specifically when using "base." it is possible that interior members of base class members are not shown.Christian
Specifically when using "base." it is possible that interior members of base class members are not shown.
namespace Fred
{
struct MyStruct
{
public int i;
public int j;
}
class MyBase
{
protected MyStruct Test;
}
class A : MyBase
{
void Foo()
{
// base.Test. // In this case you will not see any members of MyStruct
// this.Test. // In this case you will see the members of MyStruct
}
}
}