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); } }
/// <summary> /// Removes a custom value from the main bencoded dictionary. /// </summary> public void RemoveCustom(BEncodedString key) { dict.Remove(key); }