Beispiel #1
0
            internal IEnumerable <KeyValuePair <string, string> > ToKeyValuePairs()
            {
                var output = new List <KeyValuePair <string, string> >();

                if (!string.IsNullOrWhiteSpace(Dictionaries))
                {
                    output.Add($"{Prefix}.dictionaries", Dictionaries);
                }
                if (!string.IsNullOrWhiteSpace(FilterDbpediaTypes))
                {
                    output.Add($"{Prefix}.filterDbpediaTypes", Dictionaries);
                }
                if (!string.IsNullOrWhiteSpace(FilterFreebaseTypes))
                {
                    output.Add($"{Prefix}.filterFreebaseTypes", Dictionaries);
                }
                if (AllowOverlap == true)
                {
                    output.Add($"{Prefix}.allowOverlap", AllowOverlap.ToString());
                }
                if (!string.IsNullOrWhiteSpace(EnrichmentQueries))
                {
                    output.Add($"{Prefix}.enrichmentQueries", Dictionaries);
                }

                return(output);
            }
Beispiel #2
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if (Symbol != null)
                {
                    hashCode = hashCode * 59 + Symbol.GetHashCode();
                }

                if (SymbolArray != null)
                {
                    hashCode = hashCode * 59 + SymbolArray.GetHashCode();
                }

                if (Angle != null)
                {
                    hashCode = hashCode * 59 + Angle.GetHashCode();
                }

                if (AngleArray != null)
                {
                    hashCode = hashCode * 59 + AngleArray.GetHashCode();
                }

                if (AllowOverlap != null)
                {
                    hashCode = hashCode * 59 + AllowOverlap.GetHashCode();
                }

                if (Opacity != null)
                {
                    hashCode = hashCode * 59 + Opacity.GetHashCode();
                }

                if (OpacityArray != null)
                {
                    hashCode = hashCode * 59 + OpacityArray.GetHashCode();
                }

                if (Size != null)
                {
                    hashCode = hashCode * 59 + Size.GetHashCode();
                }

                if (SizeArray != null)
                {
                    hashCode = hashCode * 59 + SizeArray.GetHashCode();
                }

                if (SizeRef != null)
                {
                    hashCode = hashCode * 59 + SizeRef.GetHashCode();
                }

                if (SizeMin != null)
                {
                    hashCode = hashCode * 59 + SizeMin.GetHashCode();
                }

                if (SizeMode != null)
                {
                    hashCode = hashCode * 59 + SizeMode.GetHashCode();
                }

                if (Color != null)
                {
                    hashCode = hashCode * 59 + Color.GetHashCode();
                }

                if (ColorArray != null)
                {
                    hashCode = hashCode * 59 + ColorArray.GetHashCode();
                }

                if (CAuto != null)
                {
                    hashCode = hashCode * 59 + CAuto.GetHashCode();
                }

                if (CMin != null)
                {
                    hashCode = hashCode * 59 + CMin.GetHashCode();
                }

                if (CMax != null)
                {
                    hashCode = hashCode * 59 + CMax.GetHashCode();
                }

                if (CMid != null)
                {
                    hashCode = hashCode * 59 + CMid.GetHashCode();
                }

                if (ColorScale != null)
                {
                    hashCode = hashCode * 59 + ColorScale.GetHashCode();
                }

                if (AutoColorScale != null)
                {
                    hashCode = hashCode * 59 + AutoColorScale.GetHashCode();
                }

                if (ReverseScale != null)
                {
                    hashCode = hashCode * 59 + ReverseScale.GetHashCode();
                }

                if (ShowScale != null)
                {
                    hashCode = hashCode * 59 + ShowScale.GetHashCode();
                }

                if (ColorBar != null)
                {
                    hashCode = hashCode * 59 + ColorBar.GetHashCode();
                }

                if (ColorAxis != null)
                {
                    hashCode = hashCode * 59 + ColorAxis.GetHashCode();
                }

                if (SymbolSrc != null)
                {
                    hashCode = hashCode * 59 + SymbolSrc.GetHashCode();
                }

                if (AngleSrc != null)
                {
                    hashCode = hashCode * 59 + AngleSrc.GetHashCode();
                }

                if (OpacitySrc != null)
                {
                    hashCode = hashCode * 59 + OpacitySrc.GetHashCode();
                }

                if (SizeSrc != null)
                {
                    hashCode = hashCode * 59 + SizeSrc.GetHashCode();
                }

                if (ColorSrc != null)
                {
                    hashCode = hashCode * 59 + ColorSrc.GetHashCode();
                }

                return(hashCode);
            }
        }
Beispiel #3
0
        public bool Equals([AllowNull] Marker other)
        {
            if (other == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return((Symbol == other.Symbol && Symbol != null && other.Symbol != null && Symbol.Equals(other.Symbol)) &&
                   (Equals(SymbolArray, other.SymbolArray) || SymbolArray != null && other.SymbolArray != null && SymbolArray.SequenceEqual(other.SymbolArray)) &&
                   (Angle == other.Angle && Angle != null && other.Angle != null && Angle.Equals(other.Angle)) &&
                   (Equals(AngleArray, other.AngleArray) || AngleArray != null && other.AngleArray != null && AngleArray.SequenceEqual(other.AngleArray)) &&
                   (AllowOverlap == other.AllowOverlap && AllowOverlap != null && other.AllowOverlap != null && AllowOverlap.Equals(other.AllowOverlap)) &&
                   (Opacity == other.Opacity && Opacity != null && other.Opacity != null && Opacity.Equals(other.Opacity)) &&
                   (Equals(OpacityArray, other.OpacityArray) || OpacityArray != null && other.OpacityArray != null && OpacityArray.SequenceEqual(other.OpacityArray)) &&
                   (Size == other.Size && Size != null && other.Size != null && Size.Equals(other.Size)) &&
                   (Equals(SizeArray, other.SizeArray) || SizeArray != null && other.SizeArray != null && SizeArray.SequenceEqual(other.SizeArray)) &&
                   (SizeRef == other.SizeRef && SizeRef != null && other.SizeRef != null && SizeRef.Equals(other.SizeRef)) &&
                   (SizeMin == other.SizeMin && SizeMin != null && other.SizeMin != null && SizeMin.Equals(other.SizeMin)) &&
                   (SizeMode == other.SizeMode && SizeMode != null && other.SizeMode != null && SizeMode.Equals(other.SizeMode)) &&
                   (Color == other.Color && Color != null && other.Color != null && Color.Equals(other.Color)) &&
                   (Equals(ColorArray, other.ColorArray) || ColorArray != null && other.ColorArray != null && ColorArray.SequenceEqual(other.ColorArray)) &&
                   (CAuto == other.CAuto && CAuto != null && other.CAuto != null && CAuto.Equals(other.CAuto)) &&
                   (CMin == other.CMin && CMin != null && other.CMin != null && CMin.Equals(other.CMin)) &&
                   (CMax == other.CMax && CMax != null && other.CMax != null && CMax.Equals(other.CMax)) &&
                   (CMid == other.CMid && CMid != null && other.CMid != null && CMid.Equals(other.CMid)) &&
                   (ColorScale == other.ColorScale && ColorScale != null && other.ColorScale != null && ColorScale.Equals(other.ColorScale)) &&
                   (AutoColorScale == other.AutoColorScale && AutoColorScale != null && other.AutoColorScale != null && AutoColorScale.Equals(other.AutoColorScale)) &&
                   (ReverseScale == other.ReverseScale && ReverseScale != null && other.ReverseScale != null && ReverseScale.Equals(other.ReverseScale)) &&
                   (ShowScale == other.ShowScale && ShowScale != null && other.ShowScale != null && ShowScale.Equals(other.ShowScale)) &&
                   (ColorBar == other.ColorBar && ColorBar != null && other.ColorBar != null && ColorBar.Equals(other.ColorBar)) &&
                   (ColorAxis == other.ColorAxis && ColorAxis != null && other.ColorAxis != null && ColorAxis.Equals(other.ColorAxis)) &&
                   (SymbolSrc == other.SymbolSrc && SymbolSrc != null && other.SymbolSrc != null && SymbolSrc.Equals(other.SymbolSrc)) &&
                   (AngleSrc == other.AngleSrc && AngleSrc != null && other.AngleSrc != null && AngleSrc.Equals(other.AngleSrc)) &&
                   (OpacitySrc == other.OpacitySrc && OpacitySrc != null && other.OpacitySrc != null && OpacitySrc.Equals(other.OpacitySrc)) &&
                   (SizeSrc == other.SizeSrc && SizeSrc != null && other.SizeSrc != null && SizeSrc.Equals(other.SizeSrc)) &&
                   (ColorSrc == other.ColorSrc && ColorSrc != null && other.ColorSrc != null && ColorSrc.Equals(other.ColorSrc)));
        }