Static property : Property « Class « Visual C++ .NET






Static property

 

#include "stdafx.h"
value class MyClass{
   public:
      static property array<MyClass>^ pp;

      static MyClass()
      {
          pp = gcnew array<MyClass>(120);
      }
};

   
  








Related examples in the same category

1.Array Property
2.Static Property
3.Scalar number Property
4.Defining Index Properties
5.Indexed properties
6.Indexed properties 2
7.Property accessor delegate
8.Declaring properties
9.Write only property
10.Virtual properties
11.Public properties can be used as named parameters