I can use Type.InvokeMember
to invoke a method via reflection, and it seems pretty robust, dealing with param array parameters for example. For some reason however it doesn't deal with optional parameters.
Is there any better built in approach for invoking a method (perhaps using the DLR) that does take into account optional parameters?