I have a .Net object that has an IList as one of its
properties. I would like to use an IEnumerator to loop
around the IList content.
Normally, I would expect to have the possibility of
invoking the GetEnumerator method from my IList, as
an IList implements IEnumerable, but I can't get the
method to be listed.
I've tried the following, to no avail:
1. Insert an Invoke Node, select the IEnumerable class,
select the GetEnumerator method, and then connect
my IList reference.
This switches the class type to IList, but leaves
the GetEnumerator method. Looks fine, but LabVIEW
then tells me that the VI is Bad, because I'm
invoking a non-existing meth
od (which isn't true,
strictly speaking :)).
2. Passing my IList reference through a To More Generic
Class node, with an IEnumerable class reference,
then invoking GetEnumerator on an IEnumerable class.
This should work, but the To More Generic Class node
refuses to receive a constant IEnumerable reference
as a target class reference.
3. Passing my IList reference through a To More Generic
Class node, with no class reference, then invoking
GetEnumerator on a Gen class.
Again, VI is bad because my To More Generic Class
node has a bad terminal (the class reference), and
the Invoke Node method is non-existing.
Any help would be greatly appreciated.
phil