DNS.Protocol.Header.ToArray C# (CSharp) Méthode

ToArray() public méthode

public ToArray ( ) : byte[]
Résultat byte[]
        public byte[] ToArray()
        {
            return Marshalling.Struct.GetBytes(this);
        }

Usage Example

Exemple #1
0
        public void EmptyHeader()
        {
            Header header = new Header();
            byte[] content = Helper.ReadFixture("Header", "empty");

            CollectionAssert.AreEqual(content, header.ToArray());
        }
All Usage Examples Of DNS.Protocol.Header::ToArray