-
Notifications
You must be signed in to change notification settings - Fork 0
/
Attributes.cs
63 lines (53 loc) · 1.18 KB
/
Attributes.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
57
58
59
60
61
62
63
using System;
using System.Reflection;
namespace GServer
{
public enum InvokeType
{
Client,
Server,
MultiCast
}
public class InvokeAttribute: Attribute
{
public InvokeType Type { get; set; }
public InvokeAttribute()
{
Type = InvokeType.MultiCast;
}
public InvokeAttribute(InvokeType invokeType)
{
Type = invokeType;
}
}
public class InvokeHelper
{
public Object classInstance;
public MethodInfo method;
public InvokeType type;
public InvokeHelper(Object instance, MethodInfo methodInfo, InvokeType invokeType)
{
classInstance = instance;
method = methodInfo;
type = invokeType;
}
}
public enum SyncType
{
Receive,
Send,
Exchange
}
public class SyncAttribute : Attribute {}
public class SyncHelper
{
public Object Class;
public PropertyInfo Field;
public SyncHelper() {}
public SyncHelper(Object c, PropertyInfo field)
{
Class = c;
Field = field;
}
}
}