terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
BaseNumberConverter.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x0200034E RID: 846
7 public abstract class BaseNumberConverter : TypeConverter
8 {
9 // Token: 0x060015FC RID: 5628 RVA: 0x00040EA8 File Offset: 0x0003F0A8
11 {
12 }
13
14 // Token: 0x17000500 RID: 1280
15 // (get) Token: 0x060015FD RID: 5629 RVA: 0x00040EBC File Offset: 0x0003F0BC
16 internal virtual bool AllowHex
17 {
18 get
19 {
20 return true;
21 }
22 }
23
24 // Token: 0x17000501 RID: 1281
25 // (get) Token: 0x060015FE RID: 5630
26 internal abstract Type TargetType { get; }
27
28 // Token: 0x060015FF RID: 5631
29 internal abstract object FromString(string value, int radix);
30
31 // Token: 0x06001600 RID: 5632
32 internal abstract object FromString(string value, NumberFormatInfo formatInfo);
33
34 // Token: 0x06001601 RID: 5633
35 internal abstract string ToString(object value, NumberFormatInfo formatInfo);
36
37 // Token: 0x06001602 RID: 5634 RVA: 0x00040ECC File Offset: 0x0003F0CC
38 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
39 {
40 if (!true)
41 {
42 }
43 Type type;
44 bool flag = sourceType == type;
45 return true;
46 }
47
48 // Token: 0x06001603 RID: 5635 RVA: 0x00040EE8 File Offset: 0x0003F0E8
49 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
50 {
51 if (value != null)
52 {
53 }
54 return base.ConvertFrom(context, culture, value);
55 }
56
57 // Token: 0x06001604 RID: 5636 RVA: 0x00040F48 File Offset: 0x0003F148
59 {
60 do
61 {
62 if (!true)
63 {
64 }
65 Type type;
66 bool flag = destinationType == type;
67 }
68 while (culture != null);
69 if (CultureInfo.CurrentCulture != null)
70 {
71 }
72 object obj;
73 return obj;
74 }
75
76 // Token: 0x06001605 RID: 5637 RVA: 0x00040F78 File Offset: 0x0003F178
78 {
79 bool flag = base.CanConvertTo(context, destinationType);
80 return true;
81 }
82 }
83}
class f__AnonymousType0<< Count > j__TPar
override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
object FromString(string value, int radix)
object FromString(string value, NumberFormatInfo formatInfo)
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
string ToString(object value, NumberFormatInfo formatInfo)
override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
static CultureInfo CurrentCulture