[MonoDevelop] Some changes to ambiences

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


Hi

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

Regards
Mike 



More information about the Monodevelop-list mailing list