You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
506 B
22 lines
506 B
using System.Collections.Generic; |
|
using Volo.Abp.Localization; |
|
|
|
namespace Sanhe.Abp.Localization.Dynamic; |
|
|
|
public class LanguageInfoComparer : IEqualityComparer<LanguageInfo> |
|
{ |
|
public bool Equals(LanguageInfo x, LanguageInfo y) |
|
{ |
|
if (x == null || y == null) |
|
{ |
|
return false; |
|
} |
|
|
|
return x.CultureName.Equals(y.CultureName); |
|
} |
|
|
|
public int GetHashCode(LanguageInfo obj) |
|
{ |
|
return obj?.CultureName.GetHashCode() ?? GetHashCode(); |
|
} |
|
}
|
|
|