key = (BEncodedString)BEncodedValue.Decode(reader); // keys have to be BEncoded strings if (oldkey != null && oldkey.CompareTo(key) > 0) if (strictDecoding) throw new BEncodingException(String.Format( "Illegal BEncodedDictionary. The attributes are not ordered correctly. Old key: {0}, New key: {1}", oldkey, key)); oldkey = key; value = BEncodedValue.Decode(reader); // the value is a BEncoded value dictionary.Add(key, value);