Exemplo n.º 1
0
    /// <summary>
    /// Unpacks the value of type implementing IMessagePackable.
    /// </summary>
    public TValue Unpack <TValue>() where TValue : class, IMessagePackable, new()
    {
        if (TryUnpackNull())
        {
            return(null);
        }
        var val = new TValue();

        val.FromMsgPack(this);
        return(val);
    }