12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- namespace ProtoBuf
- {
-
-
-
-
- [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
- public sealed class ProtoEnumAttribute : Attribute
- {
-
-
-
- public int Value
- {
- get { return enumValue; }
- set { this.enumValue = value; hasValue = true; }
- }
-
-
-
-
- public bool HasValue() { return hasValue; }
- private bool hasValue;
- private int enumValue;
-
-
-
-
- public string Name { get { return name; } set { name = value; } }
- private string name;
- }
- }
|