From 14b3ea0f1285ded1d053a6b49170d668712f1891 Mon Sep 17 00:00:00 2001 From: cneuwirt Date: Sun, 18 Nov 2007 18:57:42 +0000 Subject: [PATCH] Reverted DictionaryComponentAttribute changes. git-svn-id: https://svn.castleproject.org/svn/castle/trunk@4495 73e77b4c-caa6-f847-a29a-24ab75ae54b6 --- .../Attributes/DictionaryComponentAttribute.cs | 2 -- .../PropertyDescriptor.cs | 21 ++++++--------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/Components/DictionaryAdapter/Castle.Components.DictionaryAdapter/Attributes/DictionaryComponentAttribute.cs b/Components/DictionaryAdapter/Castle.Components.DictionaryAdapter/Attributes/DictionaryComponentAttribute.cs index 05b042e74..9a2339a57 100644 --- a/Components/DictionaryAdapter/Castle.Components.DictionaryAdapter/Attributes/DictionaryComponentAttribute.cs +++ b/Components/DictionaryAdapter/Castle.Components.DictionaryAdapter/Attributes/DictionaryComponentAttribute.cs @@ -71,8 +71,6 @@ namespace Castle.Components.DictionaryAdapter { PropertyDescriptor descriptor = new PropertyDescriptor(property.Property); - descriptor.AddGetters(property.Getters); - descriptor.AddSetters(property.Setters); descriptor.AddKeyBuilder(new DictionaryKeyPrefixAttribute(key)); return factory.GetAdapter( diff --git a/Components/DictionaryAdapter/Castle.Components.DictionaryAdapter/PropertyDescriptor.cs b/Components/DictionaryAdapter/Castle.Components.DictionaryAdapter/PropertyDescriptor.cs index 512dce365..6c5971118 100644 --- a/Components/DictionaryAdapter/Castle.Components.DictionaryAdapter/PropertyDescriptor.cs +++ b/Components/DictionaryAdapter/Castle.Components.DictionaryAdapter/PropertyDescriptor.cs @@ -144,12 +144,9 @@ namespace Castle.Components.DictionaryAdapter { if (keyBuilders == null) { - keyBuilders = new IDictionaryKeyBuilder[] {builder}; - } - else - { - keyBuilders.Add(builder); + keyBuilders = new List(); } + keyBuilders.Add(builder); } /// @@ -214,12 +211,9 @@ namespace Castle.Components.DictionaryAdapter { if (getters == null) { - getters = new IDictionaryPropertyGetter[] { getter }; - } - else - { - getters.Add(getter); + getters = new List(); } + getters.Add(getter); } /// @@ -284,12 +278,9 @@ namespace Castle.Components.DictionaryAdapter { if (setters == null) { - setters = new IDictionaryPropertySetter[] { setter }; - } - else - { - setters.Add(setter); + setters = new List(); } + setters.Add(setter); } /// -- 2.11.4.GIT