[IronPython] Default-valued arguments to C# functions
jdhardy at gmail.com
Sat Apr 24 05:32:49 CEST 2010
On Fri, Apr 23, 2010 at 7:01 PM, Dino Viehland <dinov at microsoft.com> wrote:
> I think removing optional should give you the correct behavior - if that
> Works then yes it is the expected behavior :).
No, removing Optional makes the parameter required.
> I guess we're checking for Optional before DefaultValue and for Optional we
> are matching the reflection behavior of passing Missing.Value. It also gives
> you a way to disambiguate whether the user passed None/null or if they
> didn't provide the parameter.
Maybe check if DefaultValue is provided? It's definitely surprising
that adding DefaultValue(null) doesn't set it to null.
More information about the Ironpython-users