blob: 926a33c76fcaa3ec7b9c1338fcd2bf4697194505 (
plain)
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
|
using System;
namespace ProtoBuf
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public sealed class ProtoEnumAttribute : Attribute
{
public int Value
{
get
{
return this.enumValue;
}
set
{
this.enumValue = value;
this.hasValue = true;
}
}
public string Name
{
get
{
return this.name;
}
set
{
this.name = value;
}
}
private bool hasValue;
private int enumValue;
private string name;
public bool HasValue()
{
return this.hasValue;
}
}
}
|