public Stream(Array reply) { index = new PairsList <DataType>(reply).ToDictionary( pair => pair.Left.Accept(BulkStringExpectation.Singleton).ToString(), pair => pair.Right ); }
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; }