calling C# function in C++/CLI environment
get the provider count
MList^ myList = MList::Instance;
myList->myPath = gcnew String(L"C:\\MyProjects\\MY MList\\Common");
myList->Initialize();
NameValueCollection^ providers_no = myList->GetTotalProviders(MyDomain::MyType::MyEnum);
int num_providers = providers_no->Count;
And it returns NameValueCollection Object but is empty collection.
The code is working in C# very fine is giving the count, but not in my C++/CLI environment.
I guess i am missing something is that do i need to register in com server or something?
any sugessions appreciated.

