From 9db5b7963ef3dda444252a7f19f76f4f618d77f4 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 2 Jun 2013 17:27:05 -0700 Subject: [PATCH] read is done using simple reflection strategy. --- NzbDrone.Core/Datastore/DelegateReflectionStrategy.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core/Datastore/DelegateReflectionStrategy.cs b/NzbDrone.Core/Datastore/DelegateReflectionStrategy.cs index 6bff4fc68..4afb28109 100644 --- a/NzbDrone.Core/Datastore/DelegateReflectionStrategy.cs +++ b/NzbDrone.Core/Datastore/DelegateReflectionStrategy.cs @@ -10,6 +10,7 @@ namespace NzbDrone.Core.Datastore { private static readonly Dictionary SetterCache = new Dictionary(); private static readonly Dictionary GetterCache = new Dictionary(); + private static readonly IReflectionStrategy readStrat = new SimpleReflectionStrategy(); private static PropertySetterDelegate SetterFunction(Type entityType, string name) { @@ -48,7 +49,7 @@ namespace NzbDrone.Core.Datastore public object GetFieldValue(object entity, string fieldName) { - return GetterFunction(entity.GetType(), fieldName); + return readStrat.GetFieldValue(entity, fieldName); } public object CreateInstance(Type type)