[MonoDevelop] Some changes to ambiences
Mike Krüger
mkrueger at novell.com
Fri Nov 28 14:51:35 EST 2008
Hi
> How's at any harder? There's a single override to implement, and they
> know that the argument is an OutputSettings object so they don't have
> to do type checks. The OutputSettings object could even have
> convenience properties for accessing the flags, e.g.
> bool UseMarkup { get { return flags & OutputFlags.UseMarkup != 0; } }
> The outputsettings object could handle the null checks on the
> postprocessing delegates too, e.g.
>
I've thousands of methods that are:
VisitSomething (Something something, object data)
{
..
GetString (something.SomeObject, data)
..
IsValidSomething (something, data)
}
etc. The visitors are operating on objects. This method prevents that
I've to upcast the data objects in each visit method as ambience
implementor.
regards
Mike
More information about the Monodevelop-list
mailing list