Skip to content
Permalink
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)
{
#if (NETFX_CORE || PCL)
return pi.PropertyType;
return pi.DeclaringType;
#else
return pi.ReflectedType;
#endif
@@ -780,7 +780,7 @@ public static Type ReflectedType(this PropertyInfo pi)
public static Type ReflectedType(this FieldInfo fi)
{
#if (NETFX_CORE || PCL)
return fi.FieldType;
return fi.DeclaringType;
#else
return fi.ReflectedType;
#endif

0 comments on commit d297f73

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