forked from kenlee0305/CyberAIO-1
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathClass17.cs
56 lines (53 loc) · 1.28 KB
/
Class17.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System;
using System.Reflection;
using System.Security;
// Token: 0x02000020 RID: 32
internal static class Class17
{
// Token: 0x060000E0 RID: 224 RVA: 0x0000DD58 File Offset: 0x0000BF58
private static bool smethod_0()
{
bool result;
try
{
if (Environment.Version.Major < 4)
{
result = false;
}
else
{
Assembly assembly = typeof(Class87).Assembly;
Assembly assembly2 = typeof(SecurityCriticalAttribute).Assembly;
bool flag = false;
foreach (object obj in assembly.GetCustomAttributes(false))
{
if (obj is AllowPartiallyTrustedCallersAttribute)
{
flag = true;
}
else
{
Type type = obj.GetType();
if (type.Assembly == assembly2 && Class185.smethod_0(537696910).Equals(type.FullName, StringComparison.Ordinal) && (byte)type.GetProperty(Class185.smethod_0(537696987)).GetValue(obj, null) != 2)
{
return false;
}
}
}
result = flag;
}
}
catch
{
result = false;
}
return result;
}
// Token: 0x060000E1 RID: 225 RVA: 0x0000349E File Offset: 0x0000169E
public static bool smethod_1()
{
return Class17.bool_0;
}
// Token: 0x0400008A RID: 138
private static readonly bool bool_0 = Class17.smethod_0();
}