[Mono-list] va_list in DllImport

Gonzalo Paniagua Javier gonzalo@gnome-db.org
Tue, 25 Jun 2002 13:22:53 +0200


* [ Rachel Hestilow <hestilow@ximian.com>
* Tue, 25 Jun 2002 08:31:32 +0200 ]
> If I wanted to DllImport a function that accepted a va_list parameter
> (function gnome_program_initv, in this case), how would I express that
> parameter in C#? The only comparable construct in C# would seem to be
> object[], but I'm not sure if that provides enough information for the
> runtime to marshal everything correctly.

You can use (params object [] list).
It is the equivalent of the ... in C.

-- 
Gonzalo Paniagua Javier <gonzalo@gnome-db.org>
http://www.gnome-db.org/~gonzalo/