Posted 18 years ago by Jeff Hutt - Blade Games World
Avatar
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.
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
        }
    }
}
Christian

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks for the repro details. This is now fixed for the upcoming beta release.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.