Files
2026-08-27 10:56:38 -06:00

32 lines
405 B
C#

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