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
AsyncLocal.cs
Go to the documentation of this file.
1
using
System
;
2
3
namespace
System.Threading
4
{
5
// Token: 0x020001B6 RID: 438
6
public
sealed
class
AsyncLocal
<T> :
IAsyncLocal
7
{
8
// Token: 0x060010A8 RID: 4264 RVA: 0x00023564 File Offset: 0x00021764
9
public
AsyncLocal
(
Action
<
AsyncLocalValueChangedArgs<T>
>
valueChangedHandler
)
10
{
11
this.m_valueChangedHandler
=
valueChangedHandler
;
12
}
13
14
// Token: 0x17000185 RID: 389
15
// (set) Token: 0x060010A9 RID: 4265 RVA: 0x00023580 File Offset: 0x00021780
16
public
T
Value
17
{
18
set
19
{
20
Action
valueChangedHandler
= this.
m_valueChangedHandler
;
21
if
(!
true
)
22
{
23
}
24
}
25
}
26
27
// Token: 0x060010AA RID: 4266 RVA: 0x00023598 File Offset: 0x00021798
28
void
IAsyncLocal
.
OnValueChanged
(
object
previousValueObj
,
object
currentValueObj
,
bool
contextChanged
)
29
{
30
if
(
previousValueObj
!=
null
)
31
{
32
if
(
previousValueObj
==
null
)
33
{
34
throw
new
InvalidCastException
();
35
}
36
if
(
currentValueObj
!=
null
&&
currentValueObj
==
null
)
37
{
38
throw
new
InvalidCastException
();
39
}
40
}
41
else
42
{
43
while
(
currentValueObj
!=
null
)
44
{
45
}
46
}
47
Action
valueChangedHandler
= this.
m_valueChangedHandler
;
48
}
49
50
// Token: 0x040008FC RID: 2300
51
private
readonly
Action<AsyncLocalValueChangedArgs<T>
>
m_valueChangedHandler
;
52
}
53
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Action
Definition
Action.5.cs:7
System.InvalidCastException
Definition
InvalidCastException.cs:9
System.Threading.AsyncLocal.Value
T Value
Definition
AsyncLocal.cs:17
System.Threading.AsyncLocal.m_valueChangedHandler
readonly Action< AsyncLocalValueChangedArgs< T > > m_valueChangedHandler
Definition
AsyncLocal.cs:51
System.Threading.AsyncLocal.AsyncLocal
AsyncLocal(Action< AsyncLocalValueChangedArgs< T > > valueChangedHandler)
Definition
AsyncLocal.cs:9
System.Threading.AsyncLocal
Definition
AsyncLocal.cs:7
System.Threading.IAsyncLocal.OnValueChanged
void OnValueChanged(object previousValue, object currentValue, bool contextChanged)
System.Threading.IAsyncLocal
Definition
IAsyncLocal.cs:7
System.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System
Definition
__ComObject.cs:4
System.Threading.AsyncLocalValueChangedArgs
Definition
AsyncLocalValueChangedArgs.cs:8
source
mscorlib
System
Threading
AsyncLocal.cs
Generated by
1.10.0