[Mono-dev] Small patch

luke at quinane.id.au luke at quinane.id.au
Wed Dec 13 20:39:22 EST 2006

Hi All,

Attached is a small patch that ignores generating command line parameters
if the managed Main function doesn't take any parameters. It allows you to
call mono_jit_exec like this if you don't need parameters:

mono_jit_exec (domain, assembly, 0, NULL);

It also changes mono_runtime_get_main_args to throw a
NotSupportedException when there are no parameters. This seems to match
the MSDN documentation for the Environment class.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: parameter-count.patch
Type: application/octet-stream
Size: 3928 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061214/a38abe5e/attachment.obj 

More information about the Mono-devel-list mailing list