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.
1using System;
3using System.IO;
5
7{
8 // Token: 0x02000391 RID: 913
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
56 {
57 }
58
59 // Token: 0x02000392 RID: 914
60 private class LicFileLicense : License
61 {
62 // Token: 0x060017C8 RID: 6088 RVA: 0x000438D0 File Offset: 0x00041AD0
64 {
65 this._owner = owner;
67 }
68
69 // Token: 0x1700056C RID: 1388
70 // (get) Token: 0x060017C9 RID: 6089 RVA: 0x000438F4 File Offset: 0x00041AF4
71 public override string LicenseKey
72 {
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
91
92 // Token: 0x0400122E RID: 4654
94 private readonly string <LicenseKey>k__BackingField;
95 }
96 }
97}
class f__AnonymousType0<< Count > j__TPar
override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)
virtual bool IsKeyValid(string key, Type type)
static void SuppressFinalize(object obj)
Definition GC.cs:116
static CultureInfo InvariantCulture
static bool Exists(string path)
Definition File.cs:86