public override byte[] Serialize()
{
int index = 0;
byte[] resultBytes = new byte[this.Size()];
if ((this.PropertyTag.PropertyType == 0x1e || this.PropertyTag.PropertyType == 0x1f || this.PropertyTag.PropertyType == 0x102) && this.Value.Length != 0)
{
Array.Copy(new byte[] { 0xff }, 0, resultBytes, index, sizeof(byte));
index += sizeof(byte);
}
Array.Copy(this.PropertyTag.Serialize(), 0, resultBytes, index, this.PropertyTag.Size());
index += this.PropertyTag.Size();
Array.Copy(base.Serialize(), 0, resultBytes, index, base.Size());
index += base.Size();
return resultBytes;
}