public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderLineItem other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((Quantity == null && other.Quantity == null) || (Quantity?.Equals(other.Quantity) == true)) && ((QuantityUnit == null && other.QuantityUnit == null) || (QuantityUnit?.Equals(other.QuantityUnit) == true)) && ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((VariationName == null && other.VariationName == null) || (VariationName?.Equals(other.VariationName) == true)) && ((Metadata == null && other.Metadata == null) || (Metadata?.Equals(other.Metadata) == true)) && ((Modifiers == null && other.Modifiers == null) || (Modifiers?.Equals(other.Modifiers) == true)) && ((AppliedTaxes == null && other.AppliedTaxes == null) || (AppliedTaxes?.Equals(other.AppliedTaxes) == true)) && ((AppliedDiscounts == null && other.AppliedDiscounts == null) || (AppliedDiscounts?.Equals(other.AppliedDiscounts) == true)) && ((BasePriceMoney == null && other.BasePriceMoney == null) || (BasePriceMoney?.Equals(other.BasePriceMoney) == true)) && ((VariationTotalPriceMoney == null && other.VariationTotalPriceMoney == null) || (VariationTotalPriceMoney?.Equals(other.VariationTotalPriceMoney) == true)) && ((GrossSalesMoney == null && other.GrossSalesMoney == null) || (GrossSalesMoney?.Equals(other.GrossSalesMoney) == true)) && ((TotalTaxMoney == null && other.TotalTaxMoney == null) || (TotalTaxMoney?.Equals(other.TotalTaxMoney) == true)) && ((TotalDiscountMoney == null && other.TotalDiscountMoney == null) || (TotalDiscountMoney?.Equals(other.TotalDiscountMoney) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((PricingBlocklists == null && other.PricingBlocklists == null) || (PricingBlocklists?.Equals(other.PricingBlocklists) == true))); }
public bool Equals(ClassDeclaration compareNode) { return (compareNode != null && BaseType?.Equals(compareNode.BaseType) != false && BaseTypeOriginalDefinition?.Equals(compareNode.BaseTypeOriginalDefinition) != false && Modifiers?.Equals(compareNode.Modifiers) != false && SemanticAssembly?.Equals(compareNode.SemanticAssembly) != false && base.Equals(compareNode)); }
public bool Equals(BaseMethodDeclaration compareNode) { return (compareNode != null && Modifiers?.Equals(compareNode.Modifiers) != false && Parameters?.SequenceEqual(compareNode.Parameters) != false && SemanticProperties?.SequenceEqual(compareNode.SemanticProperties) != false && SemanticSignature?.Equals(compareNode.SemanticSignature) != false && base.Equals(compareNode)); }
public bool Equals(InvocationExpression compareNode) { return (compareNode != null && MethodName?.Equals(compareNode.MethodName) != false && Modifiers?.Equals(compareNode.Modifiers) != false && SemanticNamespace?.Equals(compareNode.SemanticNamespace) != false && CallerIdentifier?.Equals(compareNode.CallerIdentifier) != false && SemanticClassType?.Equals(compareNode.SemanticClassType) != false && SemanticMethodSignature?.Equals(compareNode.SemanticMethodSignature) != false && #pragma warning disable CS0618 // Type or member is obsolete Parameters?.SequenceEqual(compareNode.Parameters) != false && #pragma warning restore CS0618 // Type or member is obsolete Arguments?.SequenceEqual(compareNode.Arguments) != false && SemanticReturnType?.Equals(compareNode.SemanticReturnType) != false && SemanticOriginalDefinition?.Equals(compareNode.SemanticOriginalDefinition) != false && IsExtension == compareNode.IsExtension && base.Equals(compareNode)); }
public override bool Equals(object obj) { if (obj == null) { return(false); } var kc = obj as KeyCombination; if (kc == null) { return(false); } if (!Modifiers.Equals(kc.Modifiers)) { return(false); } return(Key.Equals(kc.Key)); }
public bool Equals(Buff other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (Id != other.Id) { return(false); } if (!object.Equals(Duration, other.Duration)) { return(false); } if (!object.Equals(ExclusivityGroup, other.ExclusivityGroup)) { return(false); } if (BuffType != other.BuffType) { return(false); } if (!Modifiers.Equals(other.Modifiers)) { return(false); } if (!conditionalModifiers_.Equals(other.conditionalModifiers_)) { return(false); } return(Equals(_unknownFields, other._unknownFields)); }
public override bool Equals(object obj) { return(obj is KeyboardEventData other?Key.Equals(other.Key) && Modifiers.Equals(other.Modifiers) && KeyboardEventType.Equals(other.KeyboardEventType) : false); }