DNS.Protocol.Header.ToArray C# (CSharp) Method

ToArray() public method

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

Usage Example

Esempio n. 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