[nem-en] array type casting

Pieter Breed pieter at pb.co.za
Sat Feb 24 07:22:07 CET 2007


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)


SetupColumnParameters(

typeof(DS_Import),

new object[] {

"DataStoreID",

new object[] {

"Imported",

new object[] { FDB.DB.DateTimeFormatString },

new string[] {

"'{0}'",

FDB.SQLDialects.GetName(FDB.SQLDialects .SQLDialect.TSQL) +

": CONVERT(datetime, '{0}', 120)" }}});


How would you call this method with these parameters from nemerle?

Regards,
Pieter Breed
-- 
"When I start to think I'm a pretty clever guy, I just have to remember the
day I lost my keys, and then lost my coat while looking for my keys."
-- Raymond Chen

+27 82 567 6207
http://pieterbreed.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070224/4628079e/attachment-0001.html


More information about the devel-en mailing list