internal override Hashtable ToHashtable()
        {
            Hashtable hashtables = new Hashtable();

            if (this.Align != this.Align_DefaultValue)
            {
                SolidgaugeSeriesDataLabelsAlign align = this.Align;
                hashtables.Add("align", Highcharts.FirstCharacterToLower(align.ToString()));
            }
            bool?allowOverlap             = this.AllowOverlap;
            bool?allowOverlapDefaultValue = this.AllowOverlap_DefaultValue;

            if ((allowOverlap.GetValueOrDefault() == allowOverlapDefaultValue.GetValueOrDefault() ? allowOverlap.HasValue != allowOverlapDefaultValue.HasValue : true))
            {
                hashtables.Add("allowOverlap", this.AllowOverlap);
            }
            if (this.BackgroundColor != this.BackgroundColor_DefaultValue)
            {
                hashtables.Add("backgroundColor", this.BackgroundColor);
            }
            if (this.BorderColor != this.BorderColor_DefaultValue)
            {
                hashtables.Add("borderColor", this.BorderColor);
            }
            double?borderRadius             = this.BorderRadius;
            double?borderRadiusDefaultValue = this.BorderRadius_DefaultValue;

            if ((borderRadius.GetValueOrDefault() == borderRadiusDefaultValue.GetValueOrDefault() ? borderRadius.HasValue != borderRadiusDefaultValue.HasValue : true))
            {
                hashtables.Add("borderRadius", this.BorderRadius);
            }
            borderRadiusDefaultValue = this.BorderWidth;
            borderRadius             = this.BorderWidth_DefaultValue;
            if ((borderRadiusDefaultValue.GetValueOrDefault() == borderRadius.GetValueOrDefault() ? borderRadiusDefaultValue.HasValue != borderRadius.HasValue : true))
            {
                hashtables.Add("borderWidth", this.BorderWidth);
            }
            if (this.ClassName != this.ClassName_DefaultValue)
            {
                hashtables.Add("className", this.ClassName);
            }
            if (this.Color != this.Color_DefaultValue)
            {
                hashtables.Add("color", this.Color);
            }
            allowOverlapDefaultValue = this.Crop;
            allowOverlap             = this.Crop_DefaultValue;
            if ((allowOverlapDefaultValue.GetValueOrDefault() == allowOverlap.GetValueOrDefault() ? allowOverlapDefaultValue.HasValue != allowOverlap.HasValue : true))
            {
                hashtables.Add("crop", this.Crop);
            }
            allowOverlap             = this.Defer;
            allowOverlapDefaultValue = this.Defer_DefaultValue;
            if ((allowOverlap.GetValueOrDefault() == allowOverlapDefaultValue.GetValueOrDefault() ? allowOverlap.HasValue != allowOverlapDefaultValue.HasValue : true))
            {
                hashtables.Add("defer", this.Defer);
            }
            allowOverlapDefaultValue = this.Enabled;
            allowOverlap             = this.Enabled_DefaultValue;
            if ((allowOverlapDefaultValue.GetValueOrDefault() == allowOverlap.GetValueOrDefault() ? allowOverlapDefaultValue.HasValue != allowOverlap.HasValue : true))
            {
                hashtables.Add("enabled", this.Enabled);
            }
            if (this.Format != this.Format_DefaultValue)
            {
                hashtables.Add("format", this.Format);
            }
            if (this.Formatter != this.Formatter_DefaultValue)
            {
                hashtables.Add("formatter", this.Formatter);
                Highcharts.AddFunction("SolidgaugeSeriesDataLabelsFormatter.formatter", this.Formatter);
            }
            allowOverlap             = this.Inside;
            allowOverlapDefaultValue = this.Inside_DefaultValue;
            if ((allowOverlap.GetValueOrDefault() == allowOverlapDefaultValue.GetValueOrDefault() ? allowOverlap.HasValue != allowOverlapDefaultValue.HasValue : true))
            {
                hashtables.Add("inside", this.Inside);
            }
            if (this.Overflow != this.Overflow_DefaultValue)
            {
                SolidgaugeSeriesDataLabelsOverflow overflow = this.Overflow;
                hashtables.Add("overflow", Highcharts.FirstCharacterToLower(overflow.ToString()));
            }
            borderRadius             = this.Padding;
            borderRadiusDefaultValue = this.Padding_DefaultValue;
            if ((borderRadius.GetValueOrDefault() == borderRadiusDefaultValue.GetValueOrDefault() ? borderRadius.HasValue != borderRadiusDefaultValue.HasValue : true))
            {
                hashtables.Add("padding", this.Padding);
            }
            borderRadiusDefaultValue = this.Rotation;
            borderRadius             = this.Rotation_DefaultValue;
            if ((borderRadiusDefaultValue.GetValueOrDefault() == borderRadius.GetValueOrDefault() ? borderRadiusDefaultValue.HasValue != borderRadius.HasValue : true))
            {
                hashtables.Add("rotation", this.Rotation);
            }
            if (this.Shadow != this.Shadow_DefaultValue)
            {
                hashtables.Add("shadow", this.Shadow);
            }
            if (this.Shape != this.Shape_DefaultValue)
            {
                hashtables.Add("shape", this.Shape);
            }
            if (this.Style != this.Style_DefaultValue)
            {
                hashtables.Add("style", this.Style);
            }
            allowOverlapDefaultValue = this.UseHTML;
            allowOverlap             = this.UseHTML_DefaultValue;
            if ((allowOverlapDefaultValue.GetValueOrDefault() == allowOverlap.GetValueOrDefault() ? allowOverlapDefaultValue.HasValue != allowOverlap.HasValue : true))
            {
                hashtables.Add("useHTML", this.UseHTML);
            }
            if (this.VerticalAlign != this.VerticalAlign_DefaultValue)
            {
                hashtables.Add("verticalAlign", this.VerticalAlign);
            }
            borderRadius             = this.X;
            borderRadiusDefaultValue = this.X_DefaultValue;
            if ((borderRadius.GetValueOrDefault() == borderRadiusDefaultValue.GetValueOrDefault() ? borderRadius.HasValue != borderRadiusDefaultValue.HasValue : true))
            {
                hashtables.Add("x", this.X);
            }
            borderRadiusDefaultValue = this.Y;
            borderRadius             = this.Y_DefaultValue;
            if ((borderRadiusDefaultValue.GetValueOrDefault() == borderRadius.GetValueOrDefault() ? borderRadiusDefaultValue.HasValue != borderRadius.HasValue : true))
            {
                hashtables.Add("y", this.Y);
            }
            borderRadius             = this.ZIndex;
            borderRadiusDefaultValue = this.ZIndex_DefaultValue;
            if ((borderRadius.GetValueOrDefault() == borderRadiusDefaultValue.GetValueOrDefault() ? borderRadius.HasValue != borderRadiusDefaultValue.HasValue : true))
            {
                hashtables.Add("zIndex", this.ZIndex);
            }
            return(hashtables);
        }
        public SolidgaugeSeriesDataLabels()
        {
            int num = 1;
            SolidgaugeSeriesDataLabelsAlign solidgaugeSeriesDataLabelsAlign = (SolidgaugeSeriesDataLabelsAlign)num;

            this.Align_DefaultValue = (SolidgaugeSeriesDataLabelsAlign)num;
            this.Align = solidgaugeSeriesDataLabelsAlign;
            bool?nullable = new bool?(false);

            this.AllowOverlap_DefaultValue = nullable;
            this.AllowOverlap = nullable;
            object obj = null;
            string str = (string)obj;

            this.BackgroundColor_DefaultValue = (string)obj;
            this.BackgroundColor = str;
            string str1 = "#cccccc";

            str = str1;
            this.BorderColor_DefaultValue = str1;
            this.BorderColor = str;
            double?nullable1 = new double?((double)3);

            this.BorderRadius_DefaultValue = nullable1;
            this.BorderRadius             = nullable1;
            nullable1                     = new double?((double)1);
            this.BorderWidth_DefaultValue = nullable1;
            this.BorderWidth              = nullable1;
            object obj1 = null;

            str = (string)obj1;
            this.ClassName_DefaultValue = (string)obj1;
            this.ClassName = str;
            object obj2 = null;

            str = (string)obj2;
            this.Color_DefaultValue = (string)obj2;
            this.Color                = str;
            nullable                  = new bool?(true);
            this.Crop_DefaultValue    = nullable;
            this.Crop                 = nullable;
            nullable                  = new bool?(true);
            this.Defer_DefaultValue   = nullable;
            this.Defer                = nullable;
            nullable                  = new bool?(false);
            this.Enabled_DefaultValue = nullable;
            this.Enabled              = nullable;
            string str2 = "{y}";

            str = str2;
            this.Format_DefaultValue = str2;
            this.Format = str;
            string str3 = "";

            str = str3;
            this.Formatter_DefaultValue = str3;
            this.Formatter           = str;
            nullable                 = null;
            this.Inside_DefaultValue = nullable;
            this.Inside              = nullable;
            int num1 = 0;
            SolidgaugeSeriesDataLabelsOverflow solidgaugeSeriesDataLabelsOverflow = (SolidgaugeSeriesDataLabelsOverflow)num1;

            this.Overflow_DefaultValue = (SolidgaugeSeriesDataLabelsOverflow)num1;
            this.Overflow              = solidgaugeSeriesDataLabelsOverflow;
            nullable1                  = new double?((double)5);
            this.Padding_DefaultValue  = nullable1;
            this.Padding               = nullable1;
            nullable1                  = new double?(0);
            this.Rotation_DefaultValue = nullable1;
            this.Rotation              = nullable1;
            Highsoft.Web.Mvc.Charts.Shadow shadow = new Highsoft.Web.Mvc.Charts.Shadow()
            {
                Enabled = false
            };
            Highsoft.Web.Mvc.Charts.Shadow shadow1 = shadow;
            this.Shadow_DefaultValue = shadow;
            this.Shadow = shadow1;
            string str4 = "square";

            str = str4;
            this.Shape_DefaultValue = str4;
            this.Shape = str;
            Hashtable hashtables = new Hashtable()
            {
                { "color", "contrast" },
                { "fontSize", "11px" },
                { "fontWeight", "bold" },
                { "textOutline", "1px 1px contrast" }
            };
            Hashtable hashtables1 = hashtables;
            Hashtable hashtables2 = hashtables1;

            this.Style_DefaultValue = hashtables1;
            this.Style = hashtables2;
            nullable   = new bool?(false);
            this.UseHTML_DefaultValue = nullable;
            this.UseHTML = nullable;
            string str5 = "top";

            str = str5;
            this.VerticalAlign_DefaultValue = str5;
            this.VerticalAlign  = str;
            nullable1           = new double?(0);
            this.X_DefaultValue = nullable1;
            this.X                   = nullable1;
            nullable1                = new double?((double)15);
            this.Y_DefaultValue      = nullable1;
            this.Y                   = nullable1;
            nullable1                = new double?((double)2);
            this.ZIndex_DefaultValue = nullable1;
            this.ZIndex              = nullable1;
        }