Exemple #1
0
 public Stream(Array reply)
 {
     index = new PairsList <DataType>(reply).ToDictionary(
         pair => pair.Left.Accept(BulkStringExpectation.Singleton).ToString(),
         pair => pair.Right
         );
 }
Exemple #2
0
        public PopResult(Array reply)
        {
            if (!reply.IsNull && reply.Count != 2)
            {
                throw new ArgumentException(
                          "Reply must be either null or 2 element array",
                          nameof(reply)
                          );
            }

            this.reply = reply;
        }