On Fri, Apr 23, 2010 at 4:57 PM, Jeff Hardy <jdha...@gmail.com> wrote:

> 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)


I think you need to use DefaultValueParameter instead of DefaultValue. It's
an easy mistake to make -- I've made it myself. :(

--
Curt Hagenlocher
c...@hagenlocher.org
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to