Personal.Person.SerializeToBytes C# (CSharp) 메소드

SerializeToBytes() 공개 정적인 메소드

Helper: Serialize into a MemoryStream and return its byte array
public static SerializeToBytes ( Person instance ) : byte[]
instance Person
리턴 byte[]
        public static byte[] SerializeToBytes(Person instance)
        {
            using (var ms = new MemoryStream())
            {
                Serialize(ms, instance);
                return ms.ToArray();
            }
        }