ObservableCollection から継承するマネージ C++ でクラスを作成しようとすると、次のエラーが表示されます: error C2039: 'ObservableCollection' : is not a member of 'System::Collections::ObjectModel'
これが私のコードです:
using namespace System;
using namespace System::Collections;
using namespace System::Collections::Generic;
using namespace System::Collections::ObjectModel;
public ref class DataMatrix : public System::Collections::ObjectModel::ObservableCollection<array<Object^>^> {};
このクラスを C++-CLI から使用できないのはなぜですか? C# での使用に問題はありません。