Browse Source
Use `Select` to get a new collection.
pull/11660/head
maliming
4 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
1 changed files with
1 additions and
2 deletions
-
framework/src/Volo.Abp.Localization/Volo/Abp/Localization/LocalizationResourceContributorList.cs
|
|
|
@ -8,8 +8,7 @@ public class LocalizationResourceContributorList : List<ILocalizationResourceCon |
|
|
|
{ |
|
|
|
public LocalizedString GetOrNull(string cultureName, string name) |
|
|
|
{ |
|
|
|
this.Reverse(); |
|
|
|
foreach (var contributor in this) |
|
|
|
foreach (var contributor in this.Select(x => x).Reverse()) |
|
|
|
{ |
|
|
|
var localString = contributor.GetOrNull(cultureName, name); |
|
|
|
if (localString != null) |
|
|
|
|