Tidying, additional test stubs

This commit is contained in:
Chris Cameron
2017-10-13 17:10:44 -04:00
parent 88f657b3a6
commit 35811f8273
6 changed files with 118 additions and 13 deletions

View File

@@ -112,16 +112,17 @@ namespace ICD.Common.Utils
s_TypeToAttributesCache[type] = new IcdHashSet<Attribute>(type.GetCustomAttributes<Attribute>(false));
methods = type.GetMethods();
#else
s_TypeToAttributesCache[type] = new IcdHashSet<Attribute>(type.GetTypeInfo().GetCustomAttributes<Attribute>(false));
methods = type.GetTypeInfo().GetMethods();
s_TypeToAttributesCache[type] =
new IcdHashSet<Attribute>(ReflectionExtensions.GetCustomAttributes<Attribute>(type.GetTypeInfo(), false));
methods = type.GetTypeInfo().GetMethods();
#endif
}
// GetMethods for Open Generic Types is not supported.
// GetMethods for Open Generic Types is not supported.
catch (NotSupportedException)
{
return;
}
// Not sure why this happens :/
// Not sure why this happens :/
catch (InvalidProgramException)
{
return;