diff options
| author | Anthony Lavado <anthonylavado@users.noreply.github.com> | 2019-06-13 22:27:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-13 22:27:00 -0400 |
| commit | b25c08e79ae56fa9a69cbc4a0f4901c73c65e78a (patch) | |
| tree | 8059c14092d7968fefe5827c59b8ed93dc695bf4 /Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs | |
| parent | 8fd47dd658152ba11925c4565ceb025381d75ca8 (diff) | |
| parent | b69b19ddce63651306bde494adfa656fd658b230 (diff) | |
Merge pull request #1156 from Bond-009/sep
Small cleanups here and there
Diffstat (limited to 'Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs')
| -rw-r--r-- | Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs b/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs index 6a522fbef..c27eb7686 100644 --- a/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs +++ b/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs @@ -48,7 +48,7 @@ namespace Emby.Server.Implementations.Services foreach (var propertyInfo in RestPath.GetSerializableProperties(type)) { - var propertySetFn = TypeAccessor.GetSetPropertyMethod(type, propertyInfo); + var propertySetFn = TypeAccessor.GetSetPropertyMethod(propertyInfo); var propertyType = propertyInfo.PropertyType; var propertyParseStringFn = GetParseFn(propertyType); var propertySerializer = new PropertySerializerEntry(propertySetFn, propertyParseStringFn, propertyType); @@ -110,9 +110,9 @@ namespace Emby.Server.Implementations.Services } } - internal class TypeAccessor + internal static class TypeAccessor { - public static Action<object, object> GetSetPropertyMethod(Type type, PropertyInfo propertyInfo) + public static Action<object, object> GetSetPropertyMethod(PropertyInfo propertyInfo) { if (!propertyInfo.CanWrite || propertyInfo.GetIndexParameters().Length > 0) { |
