public bool Equals(DestinyPlayer input) { if (input == null) { return(false); } return (( DestinyUserInfo == input.DestinyUserInfo || (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo)) ) && ( CharacterClass == input.CharacterClass || (CharacterClass != null && CharacterClass.Equals(input.CharacterClass)) ) && ( ClassHash == input.ClassHash || (ClassHash.Equals(input.ClassHash)) ) && ( RaceHash == input.RaceHash || (RaceHash.Equals(input.RaceHash)) ) && ( GenderHash == input.GenderHash || (GenderHash.Equals(input.GenderHash)) ) && ( CharacterLevel == input.CharacterLevel || (CharacterLevel.Equals(input.CharacterLevel)) ) && ( LightLevel == input.LightLevel || (LightLevel.Equals(input.LightLevel)) ) && ( BungieNetUserInfo == input.BungieNetUserInfo || (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo)) ) && ( ClanName == input.ClanName || (ClanName != null && ClanName.Equals(input.ClanName)) ) && ( ClanTag == input.ClanTag || (ClanTag != null && ClanTag.Equals(input.ClanTag)) ) && ( EmblemHash == input.EmblemHash || (EmblemHash.Equals(input.EmblemHash)) )); }
public override bool Equals(object obj) { if (obj is null) { return(false); } if (!(obj is RegexSet set)) { return(false); } return(CharacterClass.Equals(set.CharacterClass) && Negate.Equals(set.Negate)); }
public override bool Equals(object obj) { if ((object)obj == null) { return(false); } var set = obj as RegexSet; if ((object)set == null) { return(false); } return(CharacterClass.Equals(set.CharacterClass) && Negate.Equals(set.Negate)); }
public override bool Equals(object obj) { return(obj is RegexSet other && CharacterClass.Equals(other.CharacterClass) && Negate.Equals(other.Negate)); }