Esempio n. 1
0
        /// <inheritdoc />
        public bool Equals([AllowNull] Link other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Equals(Label, other.Label) ||
                     Label != null && other.Label != null &&
                     Label.SequenceEqual(other.Label)
                     ) &&
                 (
                     Color == other.Color ||
                     Color != null &&
                     Color.Equals(other.Color)
                 ) &&
                 (
                     Equals(ColorArray, other.ColorArray) ||
                     ColorArray != null && other.ColorArray != null &&
                     ColorArray.SequenceEqual(other.ColorArray)
                 ) &&
                 (
                     Equals(CustomData, other.CustomData) ||
                     CustomData != null && other.CustomData != null &&
                     CustomData.SequenceEqual(other.CustomData)
                 ) &&
                 (
                     Line == other.Line ||
                     Line != null &&
                     Line.Equals(other.Line)
                 ) &&
                 (
                     Equals(Source, other.Source) ||
                     Source != null && other.Source != null &&
                     Source.SequenceEqual(other.Source)
                 ) &&
                 (
                     Equals(Target, other.Target) ||
                     Target != null && other.Target != null &&
                     Target.SequenceEqual(other.Target)
                 ) &&
                 (
                     Equals(Value, other.Value) ||
                     Value != null && other.Value != null &&
                     Value.SequenceEqual(other.Value)
                 ) &&
                 (
                     HoverInfo == other.HoverInfo ||
                     HoverInfo != null &&
                     HoverInfo.Equals(other.HoverInfo)
                 ) &&
                 (
                     HoverLabel == other.HoverLabel ||
                     HoverLabel != null &&
                     HoverLabel.Equals(other.HoverLabel)
                 ) &&
                 (
                     HoverTemplate == other.HoverTemplate ||
                     HoverTemplate != null &&
                     HoverTemplate.Equals(other.HoverTemplate)
                 ) &&
                 (
                     Equals(HoverTemplateArray, other.HoverTemplateArray) ||
                     HoverTemplateArray != null && other.HoverTemplateArray != null &&
                     HoverTemplateArray.SequenceEqual(other.HoverTemplateArray)
                 ) &&
                 (
                     Equals(ColorScales, other.ColorScales) ||
                     ColorScales != null && other.ColorScales != null &&
                     ColorScales.SequenceEqual(other.ColorScales)
                 ) &&
                 (
                     LabelSrc == other.LabelSrc ||
                     LabelSrc != null &&
                     LabelSrc.Equals(other.LabelSrc)
                 ) &&
                 (
                     ColorSrc == other.ColorSrc ||
                     ColorSrc != null &&
                     ColorSrc.Equals(other.ColorSrc)
                 ) &&
                 (
                     CustomDataSrc == other.CustomDataSrc ||
                     CustomDataSrc != null &&
                     CustomDataSrc.Equals(other.CustomDataSrc)
                 ) &&
                 (
                     SourceSrc == other.SourceSrc ||
                     SourceSrc != null &&
                     SourceSrc.Equals(other.SourceSrc)
                 ) &&
                 (
                     TargetSrc == other.TargetSrc ||
                     TargetSrc != null &&
                     TargetSrc.Equals(other.TargetSrc)
                 ) &&
                 (
                     ValueSrc == other.ValueSrc ||
                     ValueSrc != null &&
                     ValueSrc.Equals(other.ValueSrc)
                 ) &&
                 (
                     HoverTemplateSrc == other.HoverTemplateSrc ||
                     HoverTemplateSrc != null &&
                     HoverTemplateSrc.Equals(other.HoverTemplateSrc)
                 ));
        }