On Fri, Apr 23, 2010 at 8:43 PM, Curt Hagenlocher <[email protected]>wrote:
> On Fri, Apr 23, 2010 at 4:57 PM, Jeff Hardy <[email protected]> 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. :( > Gah! I mean "DefaultParameterValue". -Curt
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
