Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'develop'
  • Loading branch information
ericnewton76 committed May 12, 2022
commit bfc2ca81e570eadaea385f156f92ea58b689eb33
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ artifacts/*
*.DotSettings.user
# Visual Studio 2015 cache/options directory
.vs/
# Rider
.idea/

[R|r]elease/**
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ private string GetLocalizedValue()
// Static class IsAbstract
if (!_type.IsVisible)
throw new ArgumentException($"Invalid resource type '{_type.FullName}'! {_type.Name} is not visible for the parser! Change resources 'Access Modifier' to 'Public'", _propertyName);
PropertyInfo propertyInfo = _type.GetProperty(_value, BindingFlags.Public | BindingFlags.Static);
PropertyInfo propertyInfo = _type.GetProperty(_value, BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Static);
if (propertyInfo == null || !propertyInfo.CanRead || (propertyInfo.PropertyType != typeof(string) && !propertyInfo.PropertyType.CanCast<string>()))
throw new ArgumentException("Invalid resource property name! Localized value: {_value}", _propertyName);
throw new ArgumentException($"Invalid resource property name! Localized value: {_value}", _propertyName);
_localizationPropertyInfo = propertyInfo;
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.