public override int GetHashCode() { int hashCode = 0; hashCode = (hashCode * 397) ^ Name.GetHashCode(); hashCode = (hashCode * 397) ^ TexturePath.GetHashCode(); hashCode = (hashCode * 397) ^ Tag.GetHashCode(); return(hashCode); }
/// <inheritdoc /> public override int GetHashCode() { unchecked { var hashCode = (TextureName != null ? TextureName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TexturePath != null ? TexturePath.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Size.GetHashCode(); return(hashCode); } }