R
Russell Mangel
I am trying to create a property which returns an enum.
The following class does not work, can someone fix it?
I am using VS2003 C++
public __gc class Drive
{
public:
Drive(){}
__property DriveType get_DriveType()
{
return _DriveType;
}
// This is the enum type
__value enum DriveType
{
CDROM, FIXED, REMOVABLE
};
private:
DriveType _DriveType;
};
Thanks
Russell Mangel
Las Vegas, NV
The following class does not work, can someone fix it?
I am using VS2003 C++
public __gc class Drive
{
public:
Drive(){}
__property DriveType get_DriveType()
{
return _DriveType;
}
// This is the enum type
__value enum DriveType
{
CDROM, FIXED, REMOVABLE
};
private:
DriveType _DriveType;
};
Thanks
Russell Mangel
Las Vegas, NV