Google.Protobuf.ServiceDescriptorProto.SerializeToBytes C# (CSharp) Метод

SerializeToBytes() публичный статический Метод

Helper: Serialize into a MemoryStream and return its byte array
public static SerializeToBytes ( ServiceDescriptorProto instance ) : byte[]
instance ServiceDescriptorProto
Результат byte[]
        public static byte[] SerializeToBytes(ServiceDescriptorProto instance)
        {
            using (var ms = new MemoryStream())
            {
                Serialize(ms, instance);
                return ms.ToArray();
            }
        }