[nem-en] array type casting
Michal Moskal
michal.moskal at gmail.com
Sat Feb 24 09:48:53 CET 2007
On 2/24/07, Pieter Breed <pieter at pb.co.za> wrote:
>
>
> Hi,
>
> I have a method that takes an array of object. (This method is implemented
> in C# and out of my control) Usually the arguments are all strings, but
> sometimes the element might be another array of object. From C# you would
> call it like this: (as an extreme example)
You use something like:
array ["foo" : object, "bar", array ["qux" : object, "zux"], "mux"]
(I guess it's enough to cast the first argument to object, others will
be cast automagically, for lists you need to cast the last one though
;-)
--
Michał
More information about the devel-en
mailing list