Use the correct call to get properties, DeclaredProperties does not return properties...
authorDavid Mason <davmason@microsoft.com>
Tue, 26 Jul 2016 20:10:20 +0000 (13:10 -0700)
committerDavid Mason <davmason@microsoft.com>
Tue, 26 Jul 2016 21:59:43 +0000 (14:59 -0700)
src/mscorlib/src/System/Diagnostics/Eventing/StubEnvironment.cs

index b213cb9..e090c4f 100644 (file)
@@ -226,7 +226,7 @@ namespace Microsoft.Reflection
         public static bool IsGenericType(this Type type) { return type.IsConstructedGenericType; }
         public static Type BaseType(this Type type) { return type.GetTypeInfo().BaseType; }
         public static Assembly Assembly(this Type type) { return type.GetTypeInfo().Assembly; }
-        public static IEnumerable<PropertyInfo> GetProperties(this Type type) { return type.GetTypeInfo().DeclaredProperties; }
+        public static IEnumerable<PropertyInfo> GetProperties(this Type type) { return type.GetRuntimeProperties(); }
         public static MethodInfo GetGetMethod(this PropertyInfo propInfo) { return propInfo.GetMethod; }
         public static Type[] GetGenericArguments(this Type type) { return type.GenericTypeArguments; }