Skip to content
Browse files

Fix PCL version of ReflectedType to use substitutable DeclaringType n…

…ot Field/Property Type
  • Loading branch information...
mythz committed Sep 29, 2014
1 parent 5216dab commit d297f738af9ac2831694df9ed99d6d5da4363afe
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ServiceStack.Text/ReflectionExtensions.cs
@@ -771,7 +771,7 @@ public static Type BaseType(this Type type)
public static Type ReflectedType(this PropertyInfo pi)
return pi.PropertyType;
return pi.DeclaringType;
return pi.ReflectedType;
@@ -780,7 +780,7 @@ public static Type ReflectedType(this PropertyInfo pi)
public static Type ReflectedType(this FieldInfo fi)
return fi.FieldType;
return fi.DeclaringType;
return fi.ReflectedType;

0 comments on commit d297f73

Please sign in to comment.
You can’t perform that action at this time.