Enumerating a Hashtable returns DictionaryEntry objects. You can then extract the key and/or value from that.
Here is some psuedo VB
For Each entry as DictionaryEntry in mvarGlideTmpSourceTable
Dim source as NTRIPsource = CType(entry.Value, NTRIPsource)
mvarGlideDropMountPoint.Options.Add(source.Mountpoint)
Next
VB has an option which controls how strictly the compiler enforces compile time type checking. The default is to have the type checking relaxed, though I always recommend ‘Option Strict’ is enabled at the project level in which case VB is more in line with C# with regard to the compile time type checking.
The more relaxed type checking and optional parameters is what made VB so much more convenient when working with COM components, and which C# has introduced both concepts firstly the relaxed compile time type checking in the form of ‘dynamic’ not supported on .NETMF and finally support for default arguments.
allways the better way to use the “option strict” and use the function to convert.
Finding bugs depending on implicite conversion is realy hard…
when coding a conversion like “Dim b as byte = cbyte(i as integer)” you allways thinking about limits