I have a vendor supplied DLL that I have been using with VB6, and am now switching over to C#.
It seems like what used to be a "Variant" in VB6 now loosely translates to "System.Object" (maybe?)
object rindexTypes; //1
System.Array myArray; //2
rindexTypes = _pfSet.get_SettingsFactorList(BarraADT.FactorTypes.aegFACTOR_RISKINDEX); //3
myArray = (System.Array)rindexTypes; //4
System.Console.WriteLine(myArray.GetUpperBound(0)); //5 returns 12
I have muddled my way through to create this code above, and am concluding that line 3 returns type "System.Object", but that I can convert it to an array, and it has length 12. I would really like to inspect the actual objects contained, but don't know how to use the foreach, when I don't know
what object type I am working with! Any ideas?