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
LicFileLicenseProvider.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Globalization
;
3
using
System.IO
;
4
using
System.Runtime.CompilerServices
;
5
6
namespace
System.ComponentModel
7
{
8
// Token: 0x02000391 RID: 913
9
public
class
LicFileLicenseProvider
:
LicenseProvider
10
{
11
// Token: 0x060017C4 RID: 6084 RVA: 0x0004385C File Offset: 0x00041A5C
12
protected
virtual
bool
IsKeyValid
(
string
key
,
Type
type)
13
{
14
if
(
key
!=
null
)
15
{
16
bool
flag;
17
return
flag;
18
}
19
}
20
21
// Token: 0x060017C5 RID: 6085 RVA: 0x00043870 File Offset: 0x00041A70
22
protected
virtual
string
GetKey
(
Type
type)
23
{
24
if
(!
true
)
25
{
26
}
27
return
string
.Format(
CultureInfo
.
InvariantCulture
,
"{0} is a licensed component."
, type);
28
}
29
30
// Token: 0x060017C6 RID: 6086 RVA: 0x00043894 File Offset: 0x00041A94
31
public
override
License
GetLicense
(
LicenseContext
context,
Type
type,
object
instance,
bool
allowExceptions
)
32
{
33
if
(context !=
null
&& context !=
null
)
34
{
35
if
(context ==
null
)
36
{
37
goto
IL_000F
;
38
}
39
if
(context ==
null
)
40
{
41
goto
IL_0016
;
42
}
43
}
44
while
(context ==
null
)
45
{
46
}
47
IL_000F
:
48
string
text
;
49
bool
flag =
File
.
Exists
(
text
);
50
IL_0016
:
51
throw
new
InvalidCastException
();
52
}
53
54
// Token: 0x060017C7 RID: 6087 RVA: 0x000438BC File Offset: 0x00041ABC
55
public
LicFileLicenseProvider
()
56
{
57
}
58
59
// Token: 0x02000392 RID: 914
60
private
class
LicFileLicense
:
License
61
{
62
// Token: 0x060017C8 RID: 6088 RVA: 0x000438D0 File Offset: 0x00041AD0
63
public
LicFileLicense
(
LicFileLicenseProvider
owner,
string
key
)
64
{
65
this._owner
= owner;
66
this.LicenseKey
=
key
;
67
}
68
69
// Token: 0x1700056C RID: 1388
70
// (get) Token: 0x060017C9 RID: 6089 RVA: 0x000438F4 File Offset: 0x00041AF4
71
public
override
string
LicenseKey
72
{
73
[
CompilerGenerated
]
74
get
75
{
76
return
this.<
LicenseKey
>
k__BackingField
;
77
}
78
}
79
80
// Token: 0x060017CA RID: 6090 RVA: 0x00043908 File Offset: 0x00041B08
81
public
override
void
Dispose
()
82
{
83
if
(!
true
)
84
{
85
}
86
GC
.
SuppressFinalize
(
this
);
87
}
88
89
// Token: 0x0400122D RID: 4653
90
private
LicFileLicenseProvider
_owner
;
91
92
// Token: 0x0400122E RID: 4654
93
[
CompilerGenerated
]
94
private
readonly
string <LicenseKey>
k__BackingField
;
95
}
96
}
97
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.ComponentModel.LicFileLicenseProvider.LicFileLicense.LicFileLicense
LicFileLicense(LicFileLicenseProvider owner, string key)
Definition
LicFileLicenseProvider.cs:63
System.ComponentModel.LicFileLicenseProvider.LicFileLicense._owner
LicFileLicenseProvider _owner
Definition
LicFileLicenseProvider.cs:90
System.ComponentModel.LicFileLicenseProvider.LicFileLicense.k__BackingField
readonly string< LicenseKey > k__BackingField
Definition
LicFileLicenseProvider.cs:94
System.ComponentModel.LicFileLicenseProvider.LicFileLicense.LicenseKey
override string LicenseKey
Definition
LicFileLicenseProvider.cs:72
System.ComponentModel.LicFileLicenseProvider.LicFileLicense.Dispose
override void Dispose()
Definition
LicFileLicenseProvider.cs:81
System.ComponentModel.LicFileLicenseProvider.LicFileLicense
Definition
LicFileLicenseProvider.cs:61
System.ComponentModel.LicFileLicenseProvider.LicFileLicenseProvider
LicFileLicenseProvider()
Definition
LicFileLicenseProvider.cs:55
System.ComponentModel.LicFileLicenseProvider.GetLicense
override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)
Definition
LicFileLicenseProvider.cs:31
System.ComponentModel.LicFileLicenseProvider.GetKey
virtual string GetKey(Type type)
Definition
LicFileLicenseProvider.cs:22
System.ComponentModel.LicFileLicenseProvider.IsKeyValid
virtual bool IsKeyValid(string key, Type type)
Definition
LicFileLicenseProvider.cs:12
System.ComponentModel.LicFileLicenseProvider
Definition
LicFileLicenseProvider.cs:10
System.ComponentModel.LicenseContext
Definition
LicenseContext.cs:8
System.ComponentModel.LicenseProvider
Definition
LicenseProvider.cs:7
System.ComponentModel.License
Definition
License.cs:7
System.GC.SuppressFinalize
static void SuppressFinalize(object obj)
Definition
GC.cs:116
System.GC
Definition
GC.cs:11
System.Globalization.CultureInfo.InvariantCulture
static CultureInfo InvariantCulture
Definition
CultureInfo.cs:39
System.Globalization.CultureInfo
Definition
CultureInfo.cs:15
System.IO.File.Exists
static bool Exists(string path)
Definition
File.cs:86
System.IO.File
Definition
File.cs:8
System.InvalidCastException
Definition
InvalidCastException.cs:9
System.Type
Definition
Type.cs:12
System.ComponentModel
Definition
AddingNewEventArgs.cs:6
System.Globalization
Definition
Bootstring.cs:5
System.IO
Definition
__Error.cs:4
System.Runtime.CompilerServices
Definition
AsyncMethodBuilderAttribute.cs:4
System.ExceptionArgument.text
@ text
System.ExceptionArgument.key
@ key
System
Definition
__ComObject.cs:4
source
System
ComponentModel
LicFileLicenseProvider.cs
Generated by
1.10.0