scripts
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.ComponentModel
|
||||
{
|
||||
/// <summary>Provides a type converter to convert 16-bit signed integer objects to and from other representations.</summary>
|
||||
// Token: 0x02000097 RID: 151
|
||||
public class Int16Converter : BaseNumberConverter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Int16Converter" /> class. </summary>
|
||||
// Token: 0x0600050E RID: 1294 RVA: 0x0000D9F8 File Offset: 0x0000BBF8
|
||||
public Int16Converter()
|
||||
{
|
||||
this.InnerType = typeof(short);
|
||||
}
|
||||
|
||||
// Token: 0x17000155 RID: 341
|
||||
// (get) Token: 0x0600050F RID: 1295 RVA: 0x0000DA10 File Offset: 0x0000BC10
|
||||
internal override bool SupportHex
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000510 RID: 1296 RVA: 0x0000DA14 File Offset: 0x0000BC14
|
||||
internal override string ConvertToString(object value, NumberFormatInfo format)
|
||||
{
|
||||
return ((short)value).ToString("G", format);
|
||||
}
|
||||
|
||||
// Token: 0x06000511 RID: 1297 RVA: 0x0000DA38 File Offset: 0x0000BC38
|
||||
internal override object ConvertFromString(string value, NumberFormatInfo format)
|
||||
{
|
||||
return short.Parse(value, NumberStyles.Integer, format);
|
||||
}
|
||||
|
||||
// Token: 0x06000512 RID: 1298 RVA: 0x0000DA48 File Offset: 0x0000BC48
|
||||
internal override object ConvertFromString(string value, int fromBase)
|
||||
{
|
||||
return Convert.ToInt16(value, fromBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user