using System; using System.Globalization; namespace System.ComponentModel { /// Provides a type converter to convert double-precision, floating point number objects to and from various other representations. // Token: 0x02000078 RID: 120 public class DoubleConverter : BaseNumberConverter { /// Initializes a new instance of the class. // Token: 0x0600044B RID: 1099 RVA: 0x0000C944 File Offset: 0x0000AB44 public DoubleConverter() { this.InnerType = typeof(double); } // Token: 0x17000122 RID: 290 // (get) Token: 0x0600044C RID: 1100 RVA: 0x0000C95C File Offset: 0x0000AB5C internal override bool SupportHex { get { return false; } } // Token: 0x0600044D RID: 1101 RVA: 0x0000C960 File Offset: 0x0000AB60 internal override string ConvertToString(object value, NumberFormatInfo format) { return ((double)value).ToString("R", format); } // Token: 0x0600044E RID: 1102 RVA: 0x0000C984 File Offset: 0x0000AB84 internal override object ConvertFromString(string value, NumberFormatInfo format) { return double.Parse(value, NumberStyles.Float, format); } } }