G
Guest
I am using Visual C# 2003. So replies in C#-speak would be appreciated.
I have a function that is passed an object. The object is tested with the
property IsArray. If this test returns true, I need to operate on each of
the elements in the object individually as an object. So I would like to be
able to convert or cast the object into an object array (object []). I tried
the obvious casts but these failed.
How can I convert the object to an array of objects (object[])?
Thanks,
Dave
I have a function that is passed an object. The object is tested with the
property IsArray. If this test returns true, I need to operate on each of
the elements in the object individually as an object. So I would like to be
able to convert or cast the object into an object array (object []). I tried
the obvious casts but these failed.
How can I convert the object to an array of objects (object[])?
Thanks,
Dave