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)