scripts
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.ComponentModel
|
||||
{
|
||||
/// <summary>Provides a type converter to convert single-precision, floating point number objects to and from various other representations.</summary>
|
||||
// Token: 0x020000C1 RID: 193
|
||||
public class SingleConverter : BaseNumberConverter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.SingleConverter" /> class. </summary>
|
||||
// Token: 0x06000664 RID: 1636 RVA: 0x00010C34 File Offset: 0x0000EE34
|
||||
public SingleConverter()
|
||||
{
|
||||
this.InnerType = typeof(float);
|
||||
}
|
||||
|
||||
// Token: 0x170001A9 RID: 425
|
||||
// (get) Token: 0x06000665 RID: 1637 RVA: 0x00010C4C File Offset: 0x0000EE4C
|
||||
internal override bool SupportHex
|
||||
{
|
||||
get
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000666 RID: 1638 RVA: 0x00010C50 File Offset: 0x0000EE50
|
||||
internal override string ConvertToString(object value, NumberFormatInfo format)
|
||||
{
|
||||
return ((float)value).ToString("R", format);
|
||||
}
|
||||
|
||||
// Token: 0x06000667 RID: 1639 RVA: 0x00010C74 File Offset: 0x0000EE74
|
||||
internal override object ConvertFromString(string value, NumberFormatInfo format)
|
||||
{
|
||||
return float.Parse(value, NumberStyles.Float, format);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user