|
|
|
|
|
|
int codePoint, |
|
|
|
string fontFamily = null, |
|
|
|
string fontPackage = null, |
|
|
|
bool matchTextDirectiom = false |
|
|
|
bool matchTextDirection = false |
|
|
|
this.matchTextDirectiom = matchTextDirectiom; |
|
|
|
this.matchTextDirection = matchTextDirection; |
|
|
|
} |
|
|
|
|
|
|
|
public readonly int codePoint; |
|
|
|
|
|
|
public readonly string fontPackage; |
|
|
|
|
|
|
|
public readonly bool matchTextDirectiom; |
|
|
|
public readonly bool matchTextDirection; |
|
|
|
|
|
|
|
public bool Equals(IconData other) { |
|
|
|
if (ReferenceEquals(null, other)) { |
|
|
|
|
|
|
return codePoint == other.codePoint && |
|
|
|
string.Equals(fontFamily, other.fontFamily) && |
|
|
|
string.Equals(fontPackage, other.fontPackage) && |
|
|
|
matchTextDirectiom == other.matchTextDirectiom; |
|
|
|
matchTextDirection == other.matchTextDirection; |
|
|
|
} |
|
|
|
|
|
|
|
public override bool Equals(object obj) { |
|
|
|
|
|
|
var hashCode = |
|
|
|
(codePoint * 397) ^ (fontFamily != null ? fontFamily.GetHashCode() : 0); |
|
|
|
hashCode = (hashCode * 397) ^ (fontPackage != null ? fontPackage.GetHashCode() : 0); |
|
|
|
hashCode = (hashCode * 397) ^ matchTextDirectiom.GetHashCode(); |
|
|
|
hashCode = (hashCode * 397) ^ matchTextDirection.GetHashCode(); |
|
|
|
return hashCode; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static bool operator !=(IconData left, IconData right) { |
|
|
|
return !Equals(left, right); |
|
|
|
} |
|
|
|