07-08-2010 06:25 AM
Hi All,
I have successfully written and tested 90% of my current LV task using .NET but have fallen at the last hurdle.
The final output from my .NET assembly is a string(s) in the form of List<T>.
I am trying to create a LV .NET constructor node for this as follows:
http://msdn.microsoft.com/en-us/library/4kf43ys3.aspx
The above informs that the List<T> Constructor is within the MS .NET Framework 2.0 Class Library as Assembly: mscorlib and with Namespace: System.Collections.Generic
Using LV 2009 SP1: Block Diagram>Functions Pallet>Connectivity>.NET>Constructor Node>Assembly mscorlib(2.0.0.0)>Object System.Collections.Generic ... only KeyNotFound Constructors may be found on my system? The List<T> is missing?
Right clicking on the List<T> output of my source .NET invoke node does auto produce (under the LV Create function) both Property and Method options for System.Collections.Generic.List
My question is how do I place on my LV block diagram a .NET mscorlib System.Collections.Generic.List<T> constructor node?
E.g. As an example I previously and successfully selected a Constructor for a BitMap via System.Drawing(2.0.0.0) - Bitmap - Bitmap(Image Original)
http://msdn.microsoft.com/en-us/library/ts25csc8.aspx
I have just downloaded a very good and free independent .NET browser .exe
http://www.red-gate.com/products/reflector/index.htm
Simply download: .NET Reflector (free), unzip and then run the Reflector.exe (no installation required).
Using reflector I can browse to: mscorlib 2.0.0.0> CommonLanguageRuntimeLibrary> System.Collections.Generic> List<T>
This proves the constructor is present on my PC?
Many Regards
Andy
07-09-2010 04:31 AM
I may have found a solution via Owen using my SSP - although not that straight forward! Thanks Owen.
http://forums.ni.com/t5/LabVIEW/How-do-I-create-a-NET-List/m-p/888138?requireLogin=False