You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
444 B
27 lines
444 B
2 months ago
|
|
||
|
using System;
|
||
|
using System.Reflection;
|
||
|
|
||
|
namespace BinarySerialize
|
||
|
{
|
||
|
|
||
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||
|
public class BinSerializeMemberAttribute : Attribute
|
||
|
{
|
||
|
private int tag;
|
||
|
|
||
|
public BinSerializeMemberAttribute(int tag)
|
||
|
{
|
||
|
this.tag = tag;
|
||
|
}
|
||
|
|
||
|
public int Tag
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return this.tag;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|