相关疑难解决方法(0)

我应该如何使用带有protobuf-net的Booksleeve?

我使用RedisConnection Set方法设置字节数组但是如何获取数据?get返回一个包装的字节数组?

链接:

这有效,但感觉不对:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookSleeve;
using ProtoBuf;
using System.IO;
namespace RedisTest001
{
    [ProtoContract, Serializable]
    public class Price
    {
        private string _ticker;
        private double _value;

        public Price()
        {
        }

        public Price(string ticker, double value)
        {
            _ticker = ticker;
            _value = value;
        }


        [ProtoMember(1)]
        public string Ticker
        {
            get { return _ticker; }
            set { _ticker = value; }
        }

        [ProtoMember(2)]
        public double Value
        {
            get { return _value; }
            set …
Run Code Online (Sandbox Code Playgroud)

protobuf-net redis booksleeve

3
推荐指数
1
解决办法
3453
查看次数

标签 统计

booksleeve ×1

protobuf-net ×1

redis ×1