L
Lews
Guest
An external program calls a fixed operation on my application. That is, my application implements the method of the other program, so the method can not be changed.
My problem is that one of the parameters that my application receives from the external program is an "object addresses".
This object is in fact a "object[] addresses", and to be more specific its a "string[] addresses".
However when my application receives it it thinks that its of the type "object addresses".
My problem is now that I cant access the elements in "addresses" because its not declared as an array... and if I try to do something like this
object[] addr;
addr = (object[]) addresses;
the c#-compiler complains because its not a valid cast.
So my question is, how do I access the strings in the addresses object?
Thanks in advance
My problem is that one of the parameters that my application receives from the external program is an "object addresses".
This object is in fact a "object[] addresses", and to be more specific its a "string[] addresses".
However when my application receives it it thinks that its of the type "object addresses".
My problem is now that I cant access the elements in "addresses" because its not declared as an array... and if I try to do something like this
object[] addr;
addr = (object[]) addresses;
the c#-compiler complains because its not a valid cast.
So my question is, how do I access the strings in the addresses object?
Thanks in advance