I'm working on code where I constantly run into the following issue. The using directive specifies "System::Collections". The code contains variable declarations that use "Generic::List<String^>" etc. None of the VAssistX completions work on the variables. If the using is changed to "System::Collections::Generic" and the variable declarations to "List<String^>" it works. If the using is left unchanged and the full qualifying name for the variable declaration is used it also works ("System::Collections::Generic::List<String^>")
I'm using VAssistX Build 1842 on VS2010. The project references the following assemblies: System, System.Data, System.Core and System.XML.
Any ideas if I have a setting wrong or if this is a bug in VAssistX?
Abel
Code example (completion works in test2() not in test()):
using namespace System;
using namespace System::Collections;
void test()
{
Generic::List<String^>^ listTest = gcnew Generic::List<String^>;
Generic::IEnumerator<String^>^ itTest = listTest->GetEnumerator();
while (itTest->MoveNext())
{
Console::WriteLine(itTest->Current);
}
}
void test2()
{
System::Collections::Generic::List<String^>^ listTest = gcnew System::Collections::Generic::List<String^>;
System::Collections::Generic::IEnumerator<String^>^ itTest = listTest->GetEnumerator();
while (itTest->MoveNext())
{
Console::WriteLine(itTest->Current);
}
}