02-01-2012 04:20 PM
Very good catch; the ReadOnlyDictionary in the example is indeed an implementation of IDictionary<> rather than a subclass of Dictionary<> and this explains the the ICollection<>.
Thanks for the explaination of Root Class list. This makes sense.
05-21-2015 04:26 AM
Hi
I have my list as an object reference i the seq.
How do i get the size of the list ? (locals.mylist.xxxxxx)
How do i use the list element number for iterating the for loop (locals.mylist.yyyyyyy)
br
Nikolaj
05-21-2015 06:23 AM
05-21-2015 08:20 AM
This is just a simple trial, for me to understand how to get data from C#.
I just create a list and output it to TS.
It's referenced/stored in locals.local_3.
I would like to check all values in the list in e.g. a numeric limit step.
How do i check the number of elements in the list ?
05-21-2015 09:18 AM - edited 05-21-2015 09:20 AM
Hi
after you get your reference to the .net Listobject with first step.
you have to use in the second step the .net adapter as well. Not the - none - Apapter!
your Root Class is: System.Collections.Generic.List<Int32>
.Net Invocation: Use Existing Object . In your case Local_3
to get the size just use the Count property.
Hope that helps
Juergen
05-21-2015 09:46 AM
how do i use the count property ?
I can't find it on the "locals.local_3.xxxx" in through the expression field.
05-21-2015 03:06 PM
I found out how to do it.
thanks a lot for your help, it was very useful !
br
Nikolaj