Curiosity gets me every time too, not a problem.

This is more or less an exercise to be honest. I'm playing around with doing 
something like DictionaryAdapter. The interfaces are going to represent 
sections in a ini config file, but are also going to have a mixin with some 
other behaviors. At least, this is the intention :)

interface ISettings {
    event OnChanged;
}

interface ISectionSettings : ISettings {
    string Foo { get; set; }
}

config:
[section]
foo = bar

usage:
class Something {
    public Something(ISectionSettings settings) {
        settings.OnChange += ...;
        Assert.That(settings.Foo, Is.EqualTo("bar"));
    }
}

- Nick

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

Reply via email to