private static void CheckContent(BEncodedDictionary dict, BEncodedString key) { if (dict.ContainsKey(key) == false) throw new TorrentException(string.Format("Invalid FastResume data. Key '{0}' was not present", key)); }