internal override Hashtable ToHashtable() { Hashtable hashtables = new Hashtable(); if (this.Align != this.Align_DefaultValue) { NoDataPositionAlign align = this.Align; hashtables.Add("align", Highcharts.FirstCharacterToLower(align.ToString())); } if (this.VerticalAlign != this.VerticalAlign_DefaultValue) { NoDataPositionVerticalAlign verticalAlign = this.VerticalAlign; hashtables.Add("verticalAlign", Highcharts.FirstCharacterToLower(verticalAlign.ToString())); } double?x = this.X; double?xDefaultValue = this.X_DefaultValue; if ((x.GetValueOrDefault() == xDefaultValue.GetValueOrDefault() ? x.HasValue != xDefaultValue.HasValue : true)) { hashtables.Add("x", this.X); } xDefaultValue = this.Y; x = this.Y_DefaultValue; if ((xDefaultValue.GetValueOrDefault() == x.GetValueOrDefault() ? xDefaultValue.HasValue != x.HasValue : true)) { hashtables.Add("y", this.Y); } return(hashtables); }
public NoDataPosition() { int num = 1; NoDataPositionAlign noDataPositionAlign = (NoDataPositionAlign)num; this.Align_DefaultValue = (NoDataPositionAlign)num; this.Align = noDataPositionAlign; int num1 = 1; NoDataPositionVerticalAlign noDataPositionVerticalAlign = (NoDataPositionVerticalAlign)num1; this.VerticalAlign_DefaultValue = (NoDataPositionVerticalAlign)num1; this.VerticalAlign = noDataPositionVerticalAlign; double?nullable = new double?(0); this.X_DefaultValue = nullable; this.X = nullable; nullable = new double?(0); this.Y_DefaultValue = nullable; this.Y = nullable; }