I've got some functions implemented in C# that need to have optional,
defaulted parameters. So far I've been declaring them similar to:

    public object cursor(CodeContext context,
[Optional][DefaultValue(null)]object factory)

However, if factory is not specified, instead of being set to null,
it's a System.Reflection.Missing instance. Removing the DefaultValue
or changing the order doesn't change the outcome. Is this expected
behaviour?

- Jeff
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to