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
ArrayConverter.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Globalization
;
3
4
namespace
System.ComponentModel
5
{
6
// Token: 0x02000348 RID: 840
7
public
class
ArrayConverter
:
CollectionConverter
8
{
9
// Token: 0x060015DA RID: 5594 RVA: 0x00040AC4 File Offset: 0x0003ECC4
10
public
override
object
ConvertTo
(
ITypeDescriptorContext
context,
CultureInfo
culture
,
object
value
,
Type
destinationType
)
11
{
12
if
(!
true
)
13
{
14
}
15
Type
type;
16
bool
flag =
destinationType
== type;
17
if
(
value
!=
null
)
18
{
19
}
20
return
base
.ConvertTo(context,
culture
,
value
,
destinationType
);
21
}
22
23
// Token: 0x060015DB RID: 5595 RVA: 0x00040B00 File Offset: 0x0003ED00
24
public
override
PropertyDescriptorCollection
GetProperties
(
ITypeDescriptorContext
context,
object
value
,
Attribute
[] attributes)
25
{
26
if
(
value
!=
null
)
27
{
28
bool
isArray =
value
.GetType().IsArray;
29
Type
type =
value
.
GetType
();
30
}
31
throw
new
ArrayTypeMismatchException
();
32
}
33
34
// Token: 0x060015DC RID: 5596 RVA: 0x00040B38 File Offset: 0x0003ED38
35
public
override
bool
GetPropertiesSupported
(
ITypeDescriptorContext
context)
36
{
37
return
true
;
38
}
39
40
// Token: 0x060015DD RID: 5597 RVA: 0x00040B48 File Offset: 0x0003ED48
41
public
ArrayConverter
()
42
{
43
}
44
45
// Token: 0x02000349 RID: 841
46
private
class
ArrayPropertyDescriptor
:
TypeConverter
.
SimplePropertyDescriptor
47
{
48
// Token: 0x060015DE RID: 5598 RVA: 0x00040B5C File Offset: 0x0003ED5C
49
public
ArrayPropertyDescriptor
(
Type
arrayType
,
Type
elementType
,
int
index
)
50
{
51
string
text2;
52
string
text
=
"["
+ text2 +
"]"
;
53
this._index
=
"["
;
54
}
55
56
// Token: 0x060015DF RID: 5599 RVA: 0x00040B88 File Offset: 0x0003ED88
57
public
override
object
GetValue
(
object
instance)
58
{
59
if
(instance !=
null
)
60
{
61
int
index
= this.
_index
;
62
object
obj
;
63
return
obj
;
64
}
65
}
66
67
// Token: 0x060015E0 RID: 5600 RVA: 0x00040BA8 File Offset: 0x0003EDA8
68
public
override
void
SetValue
(
object
instance,
object
value
)
69
{
70
if
(instance !=
null
)
71
{
72
}
73
}
74
75
// Token: 0x040011B2 RID: 4530
76
private
readonly
int
_index
;
77
}
78
}
79
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.Attribute
Definition
Attribute.cs:11
System.ComponentModel.ArrayConverter.ArrayPropertyDescriptor._index
readonly int _index
Definition
ArrayConverter.cs:76
System.ComponentModel.ArrayConverter.ArrayPropertyDescriptor.SetValue
override void SetValue(object instance, object value)
Definition
ArrayConverter.cs:68
System.ComponentModel.ArrayConverter.ArrayPropertyDescriptor.GetValue
override object GetValue(object instance)
Definition
ArrayConverter.cs:57
System.ComponentModel.ArrayConverter.ArrayPropertyDescriptor.ArrayPropertyDescriptor
ArrayPropertyDescriptor(Type arrayType, Type elementType, int index)
Definition
ArrayConverter.cs:49
System.ComponentModel.ArrayConverter.ArrayPropertyDescriptor
Definition
ArrayConverter.cs:47
System.ComponentModel.ArrayConverter.ConvertTo
override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Definition
ArrayConverter.cs:10
System.ComponentModel.ArrayConverter.ArrayConverter
ArrayConverter()
Definition
ArrayConverter.cs:41
System.ComponentModel.ArrayConverter.GetProperties
override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
Definition
ArrayConverter.cs:24
System.ComponentModel.ArrayConverter.GetPropertiesSupported
override bool GetPropertiesSupported(ITypeDescriptorContext context)
Definition
ArrayConverter.cs:35
System.ComponentModel.ArrayConverter
Definition
ArrayConverter.cs:8
System.ComponentModel.CollectionConverter
Definition
CollectionConverter.cs:8
System.ComponentModel.PropertyDescriptorCollection
Definition
PropertyDescriptorCollection.cs:11
System.ComponentModel.TypeConverter.SimplePropertyDescriptor
Definition
TypeConverter.cs:439
System.ComponentModel.TypeConverter
Definition
TypeConverter.cs:12
System.Globalization.CultureInfo
Definition
CultureInfo.cs:15
System.Type.GetType
new Type GetType()
Definition
Type.cs:287
System.Type
Definition
Type.cs:12
System.ComponentModel.ITypeDescriptorContext
Definition
ITypeDescriptorContext.cs:7
System.ComponentModel
Definition
AddingNewEventArgs.cs:6
System.Globalization
Definition
Bootstring.cs:5
System.ExceptionArgument.text
@ text
System.ExceptionArgument.value
@ value
System.ExceptionArgument.culture
@ culture
System.ExceptionArgument.index
@ index
System.ExceptionArgument.obj
@ obj
System
Definition
__ComObject.cs:4
source
System
ComponentModel
ArrayConverter.cs
Generated by
1.10.0