Ok, if anyone else want this please refer to: 
http://timrayburn.net/blog/dictionaryadapter-is-love-part-2/

public class NestedDictionaryGetterBehavior : Attribute, 
IDictionaryPropertyGetter
    {
        public object GetPropertyValue(IDictionaryAdapter dictionaryAdapter, 
string key, object storedValue, 
Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists)
        {
            if (property.PropertyType.IsAssignableFrom(storedValue.GetType()))
            {
                return storedValue;
            }
 
            if (property.PropertyType.IsInterface && 
IsDictionary(storedValue.GetType()))
            {
                return 
dictionaryAdapter.This.Factory.GetAdapter(property.PropertyType, storedValue as 
IDictionary);
            }
 
            return storedValue;
        }
 
        public int ExecutionOrder
        {
            get { return 0; }
        }
 
        private bool IsDictionary(Type type)
        {
            return typeof(IDictionary).IsAssignableFrom(type);
        }
    }

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