DNS.Protocol.Header.ToArray C# (CSharp) 메소드

ToArray() 공개 메소드

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

Usage Example

예제 #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