We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d45f14f commit 0881d1bCopy full SHA for 0881d1b
src/CommandLine/Infrastructure/LocalizableAttributeProperty.cs
@@ -43,8 +43,12 @@ private string GetLocalizedValue()
43
return _value;
44
if (_localizationPropertyInfo == null)
45
{
46
- // Static class IsAbstract
+ // Static class IsAbstract
47
+#if NETSTANDARD1_5
48
+ if (!_type.GetTypeInfo().IsVisible)
49
+#else
50
if (!_type.IsVisible)
51
+#endif
52
throw new ArgumentException("Invalid resource type", _propertyName);
53
PropertyInfo propertyInfo = _type.GetProperty(_value, BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Static);
54
if (propertyInfo == null || !propertyInfo.CanRead || propertyInfo.PropertyType != typeof(string))
0 commit comments