diff options
author | David Mason <davmason@microsoft.com> | 2016-07-26 13:10:20 -0700 |
---|---|---|
committer | David Mason <davmason@microsoft.com> | 2016-07-26 14:59:43 -0700 |
commit | 9d7584d057021e0ca7cb69eefcda68ba011d2bd8 (patch) | |
tree | a8a7fd897155a076a86c179b65916525c99cb082 /src | |
parent | f09a1f3a0d6e2654f546acd9cedfb9baa2267819 (diff) | |
download | coreclr-9d7584d057021e0ca7cb69eefcda68ba011d2bd8.tar.gz coreclr-9d7584d057021e0ca7cb69eefcda68ba011d2bd8.tar.bz2 coreclr-9d7584d057021e0ca7cb69eefcda68ba011d2bd8.zip |
Use the correct call to get properties, DeclaredProperties does not return properties for a base class
Diffstat (limited to 'src')
-rw-r--r-- | src/mscorlib/src/System/Diagnostics/Eventing/StubEnvironment.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/src/System/Diagnostics/Eventing/StubEnvironment.cs b/src/mscorlib/src/System/Diagnostics/Eventing/StubEnvironment.cs index b213cb9dfb..e090c4f106 100644 --- a/src/mscorlib/src/System/Diagnostics/Eventing/StubEnvironment.cs +++ b/src/mscorlib/src/System/Diagnostics/Eventing/StubEnvironment.cs @@ -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; } |