I am having trouble with the syntax for overriding IList source in managed c++. Especially, how do you override the
public ref class StopListSource : Component, IListSource {
private: static BindingList<String^>^ blah = gcnew BindingList<String^>();
public: StopListSource() {}
StopListSource(IContainer^ container) { container->Add(this); }
//***The Following generates: a member using-declaration or access declaration is illegal within a managed type IListSource::ContainsListCollection { get { return false; } }
//Not sure about the following, but it doesn't throw any errors
//in C# this is: System.Collections.IList IListSource.GetList() , but in C++ this is old syntax
static System::Collections::IList^ GetList = IListSource::GetList() {
return blah; }
};
Visual C++15
|