public byte[] GetBytes()
 {
     using MemoryStream stream = new MemoryStream();
     Header.WriteBytes(stream);
     Question.WriteBytes(stream);
     return(stream.ToArray());
 }
        public byte[] GetBytes()
        {
            Resource.Data = GetData();

            using MemoryStream stream = new MemoryStream();
            Header.WriteBytes(stream);
            Resource.WriteBytes(stream);
            return(stream.ToArray());
        }
        public byte[] GetBytes()
        {
            Resource.Data = GetData();

            using MemoryStream stream = new MemoryStream();
            Header.WriteBytes(stream);
            Question.WriteBytes(stream);
            Resource.WriteBytes(stream, NameServicePacketHeader.Length);
            return(stream.ToArray());
        }