using System; using System.Globalization; namespace System.ComponentModel { /// Provides a type converter to convert 64-bit unsigned integer objects to and from other representations. // Token: 0x020000D9 RID: 217 public class UInt64Converter : BaseNumberConverter { /// Initializes a new instance of the class. // Token: 0x06000753 RID: 1875 RVA: 0x00013CBC File Offset: 0x00011EBC public UInt64Converter() { this.InnerType = typeof(ulong); } // Token: 0x170001BF RID: 447 // (get) Token: 0x06000754 RID: 1876 RVA: 0x00013CD4 File Offset: 0x00011ED4 internal override bool SupportHex { get { return true; } } // Token: 0x06000755 RID: 1877 RVA: 0x00013CD8 File Offset: 0x00011ED8 internal override string ConvertToString(object value, NumberFormatInfo format) { return ((ulong)value).ToString("G", format); } // Token: 0x06000756 RID: 1878 RVA: 0x00013CFC File Offset: 0x00011EFC internal override object ConvertFromString(string value, NumberFormatInfo format) { return ulong.Parse(value, NumberStyles.Integer, format); } // Token: 0x06000757 RID: 1879 RVA: 0x00013D0C File Offset: 0x00011F0C internal override object ConvertFromString(string value, int fromBase) { return Convert.ToUInt64(value, fromBase); } } }