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.
26 lines
444 B
26 lines
444 B
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|