I have a list that I would like to be able to enumerate so I can do foreach and similar things.
The class (Symbol.WPAN.Bluetooth.RemoteDevices) has array like notation (ie this[1])
Is there anyway to wrap this up and make it enumerable?
(By the way, I know I can just use a normal for loop instead of a foreach loop. I guess this question is somewhat academic in nature.)
Assuming it also has a Count function you could do the following
A more generic solution would be the following