コード例 #1
0
 public static bool StaticEquals(ILocalizedIdentity <T> left, ILocalizedIdentity <T> right) =>
 left?.StringKey == right?.StringKey && left?.CultureKey == right?.CultureKey;
コード例 #2
0
 public override bool Equals(ILocalizedIdentity <T> left, ILocalizedIdentity <T> right) => StaticEquals(left, right);
コード例 #3
0
 public override int GetHashCode(ILocalizedIdentity <T> obj) => StaticGetHashCode(obj);
コード例 #4
0
 public static int StaticGetHashCode(ILocalizedIdentity <T> obj) => GetHashCode(obj?.StringKey, obj?.CultureKey);