public override ICollection <byte> Serialize() { var content = new List <byte>(); content.AddRange(ResultCode.Serialize()); content.AddRange(MatchedDN.Serialize()); content.AddRange(DiagnosticMessage.Serialize()); Length = content.Count(); var result = new List <byte>(); result.AddRange(content); return(result); }