[MonoDevelop] Some changes to ambiences

Mike Krüger mkrueger at novell.com
Fri Nov 28 04:37:29 EST 2008


> How about:
> public abstract string GetString (IDomVisitable domVisitable,
> OutputSettings settings);
> public string GetString (IDomVisitable domVisitable, OutputFlags flags)
> {
>     return GetString (domVisitable, new OutputSettings (flags));
> }

It's more complicated to use than just the 'object' version for the
ambience implementor. The ambience implementor uses a visitor pattern
and gets the flags/settings object as object parameter. It's easier to
use in this case.


More information about the Monodevelop-list mailing list