You can use named arguments for the same effect: f.DefferedStart(doNotThrow: true);
On Mon, Jul 5, 2010 at 9:36 AM, OmerMor <[email protected]> wrote: > Congratulations! > I have a suggestion regarding the deferred start: avoid using bool > parameters in your APIs. It makes the code much less readable. > In our team we always use enums for boolean options. > This would make your new API look like this (I'm sure better names > could be found): > > container.AddFacility<StartableFacility>(f => > f.DeferredStart(Options.DoNotThrow)); -- Cheers, hammett http://hammett.castleproject.org/ -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
