123456789101112131415161718192021222324252627282930313233343536 |
- 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() => hasValue;
- private bool hasValue;
- private int enumValue;
-
-
-
-
- public string Name { get; set; }
- }
- }
|