I was developing C++/Cli library to use C++ third party library in my C# application.I wrote a method to retrive the collection of datasets from
CLI library to C#.
The method exposed from CLI library is void Query(List<Dictionary<int ,String^>^>^ %data);
here i am using reference type in List. is it good to use reference types than value types in List?
since it is a reference type the memory will be handled by gc. Does it affects my list when i am reading
it in C# application. When GC will free the memory in this case?