Esempio n. 1
0
        protected void SetString(BEncodedDictionary dictionary, BEncodedString key, string value)
        {
            if (dictionary == InfoDict)
            {
                CheckCanEditSecure();
            }

            if (value == null)
            {
                dictionary.Remove(key);
            }
            else
            {
                dictionary [key] = new BEncodedString(value);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Removes a custom value from the main bencoded dictionary.
 /// </summary>
 public void RemoveCustom(BEncodedString key)
 {
     dict.Remove(key);
 }