Quantcast
Channel: Ref Class Question
Viewing all articles
Browse latest Browse all 7

Ref Class Question

$
0
0
Hello, I have a question regarding the way intellisense works with ref classes. I have a class like so:
public ref class Man abstract sealed
    {
        public:   
            public ref class Size
            {
            public:
                static int Height;
                static int Weight;
            };
            public ref class Name
            {
            public:
                static String^ First_Name;
                static String^ Last_Name;
                static String^ Middle_Name;
            };
            public ref class Colour
            {
            public:
                static Color^ SkinColour;
                static Color^ EyesColour;
            };
    };

Now I created a new instance of Man called m. then I typed m-> but intellisense doesn't see the classes inside it, if I use them in my code it works, though. Also, if I write Man:: I see all of the classes inside. Why is this?

With Thanks,
                    Gal Beniamini.

Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images