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
CustomAttributeExtensions.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
Cpp2IlInjected
;
4
5
namespace
System.Reflection
6
{
7
// Token: 0x020004FB RID: 1275
8
public
static
class
CustomAttributeExtensions
9
{
10
// Token: 0x060024F3 RID: 9459 RVA: 0x00051C04 File Offset: 0x0004FE04
11
public
static
Attribute
GetCustomAttribute
(
this
Assembly
element,
Type
attributeType
)
12
{
13
Attribute
attribute;
14
return
attribute;
15
}
16
17
// Token: 0x060024F4 RID: 9460 RVA: 0x00051C14 File Offset: 0x0004FE14
18
public
static
T
GetCustomAttribute<T>
(
this
Assembly
element)
where
T
:
Attribute
19
{
20
Attribute
attribute;
21
while
(attribute !=
null
)
22
{
23
if
(attribute ==
null
)
24
{
25
throw
new
InvalidCastException
();
26
}
27
}
28
}
29
30
// Token: 0x060024F5 RID: 9461 RVA: 0x0000207A File Offset: 0x0000027A
31
public
static
IEnumerable<Attribute>
GetCustomAttributes
(
this
MemberInfo
element,
Type
attributeType
)
32
{
33
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
34
}
35
36
// Token: 0x060024F6 RID: 9462 RVA: 0x00051C30 File Offset: 0x0004FE30
37
public
static
IEnumerable<T>
GetCustomAttributes<T>
(
this
MemberInfo
element)
where
T
:
Attribute
38
{
39
IEnumerable<Attribute>
customAttributes
;
40
do
41
{
42
Type
type;
43
customAttributes
=
CustomAttributeExtensions
.
GetCustomAttributes
(type, type);
44
if
(
customAttributes
==
null
)
45
{
46
return
;
47
}
48
}
49
while
(
customAttributes
!=
null
);
50
throw
new
InvalidCastException
();
51
}
52
53
// Token: 0x060024F7 RID: 9463 RVA: 0x00051C54 File Offset: 0x0004FE54
54
public
static
bool
IsDefined
(
this
MemberInfo
element,
Type
attributeType
)
55
{
56
bool
flag;
57
return
flag;
58
}
59
}
60
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.Attribute
Definition
Attribute.cs:11
System.InvalidCastException
Definition
InvalidCastException.cs:9
System.Reflection.Assembly
Definition
Assembly.cs:19
System.Reflection.CustomAttributeExtensions.GetCustomAttribute< T >
static T GetCustomAttribute< T >(this Assembly element)
Definition
CustomAttributeExtensions.cs:18
System.Reflection.CustomAttributeExtensions.IsDefined
static bool IsDefined(this MemberInfo element, Type attributeType)
Definition
CustomAttributeExtensions.cs:54
System.Reflection.CustomAttributeExtensions.GetCustomAttribute
static Attribute GetCustomAttribute(this Assembly element, Type attributeType)
Definition
CustomAttributeExtensions.cs:11
System.Reflection.CustomAttributeExtensions.GetCustomAttributes< T >
static IEnumerable< T > GetCustomAttributes< T >(this MemberInfo element)
Definition
CustomAttributeExtensions.cs:37
System.Reflection.CustomAttributeExtensions.GetCustomAttributes
static IEnumerable< Attribute > GetCustomAttributes(this MemberInfo element, Type attributeType)
Definition
CustomAttributeExtensions.cs:31
System.Reflection.CustomAttributeExtensions
Definition
CustomAttributeExtensions.cs:9
System.Reflection.MemberInfo
Definition
MemberInfo.cs:9
System.Type
Definition
Type.cs:12
System.Collections.Generic.IEnumerable
Definition
IEnumerable.cs:7
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.Reflection
Definition
AmbiguousMatchException.cs:5
System.ConsoleKey.T
@ T
System
Definition
__ComObject.cs:4
source
mscorlib
System
Reflection
CustomAttributeExtensions.cs
Generated by
1.10.0