I am using NETLink and I am trying to construct the following .NET object
List<string> list = new List<string>();
My first question is how can I load System.Collections.Generic.List
?
The following command:
NETTypeInfo[LoadNETAssembly["mscorlib.dll"], {"Classes"}]
shows that the class is in mscorlib. But when I enter:
NETTypeInfo["System.Collections.Generic.List"]
I am getting an error message:
LoadNETType::fail: .NET failed to load type System.Collections.Generic.List. >>
On the contrary if I try to load some other class from mscorlib.dll such as:
NETTypeInfo["System.Collections.ArrayList"]
It works fine.
What I am doing wrong here ?
My second question is how can I create Generic.List type objects with NETNew
from System.Collections.Generic.List
class?
Thank you
PS: I am using Mathematica 10.0 and Visual Studio 2010 on a Windows7 OS