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 it's a "string[] addresses".
However when my application receives it it thinks that it's of the type "object addresses".
My problem is now that I can't access the elements in "addresses" because it's not declared as an array... and if I try to do something like this
object[] addr;
addr = (object[]) addresses;
the c#-compiler complains because it's 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 it's a "string[] addresses".
However when my application receives it it thinks that it's of the type "object addresses".
My problem is now that I can't access the elements in "addresses" because it's not declared as an array... and if I try to do something like this
object[] addr;
addr = (object[]) addresses;
the c#-compiler complains because it's not a valid cast.
So my question is, how do I access the strings in the addresses object?
Thanks in advance