-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContract.cs
More file actions
74 lines (65 loc) · 2.1 KB
/
Contract.cs
File metadata and controls
74 lines (65 loc) · 2.1 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using System;
namespace Preprocessor
{
[Serializable]
public class ClientMapping
{
public string Version { get; set; }
public TypeMapping[] Types { get; set; }
}
[Serializable]
public class TypeMapping
{
public string RefactoredName { get; set; }
public string ObfuscatedName { get; set; }
public string BaseType { get; set; }
public bool IsClass { get; set; }
public bool IsEnum { get; set; }
public bool IsInterface { get; set; }
public bool IsValueType { get; set; }
public bool IsPublic { get; set; }
public GenericParameterMapping[] GenericParameters { get; set; }
public MethodMapping[] Methods { get; set; }
public PropertyMapping[] Properties { get; set; }
public EnumValueMapping[] EnumValues { get; set; }
}
[Serializable]
public class EnumValueMapping
{
public string RefactoredName { get; set; }
public string ObfuscatedName { get; set; }
public int Value { get; set; }
}
[Serializable]
public class PropertyMapping
{
public string RefactoredName { get; set; }
public string ObfuscatedName { get; set; }
public string Type { get; set; }
public bool HasPublicGetter { get; set; }
public bool HasPublicSetter { get; set; }
}
[Serializable]
public class MethodMapping
{
public string RefactoredName { get; set; }
public string ObfuscatedName { get; set; }
public string ReturnType { get; set; }
public bool IsStatic { get; set; }
public bool IsPublic { get; set; }
public GenericParameterMapping[] GenericParameters { get; set; }
public ParameterMapping[] Parameters { get; set; }
}
[Serializable]
public class GenericParameterMapping
{
public string ObfuscatedName { get; set; }
public string[] Constraints { get; set; }
}
[Serializable]
public class ParameterMapping
{
public string Type { get; set; }
public string ObfuscatedName { get; set; }
}
}