Ejemplo n.º 1
0
 /// <summary>
 /// Saves a BDicionary to the provided Stream.
 /// </summary>
 /// <param name="value">The BDicionary to ba saved.</param>
 /// <param name="stream">The Stream to receive the saved data.</param>
 /// <remarks>This method is the same as the method Save, but receives a BDicionary as the value parameter because a torrent file is bencoded dictionary.</remarks>
 public static void SaveTorrent(BDictionary value, Stream stream)
 {
     Save(value, stream);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Saves a BDicionary to the provided file path.
 /// </summary>
 /// <param name="value">The BDicionary to ba saved.</param>
 /// <param name="path">The destination path.</param>
 /// <remarks>This method is the same as the method Save, but receives a BDicionary as the value parameter because a torrent file is bencoded dictionary.</remarks>
 public static void SaveTorrent(BDictionary value, string path)
 {
     Save(value, path);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns a System.String that represents the current System.Object.
        /// </summary>
        /// <returns>A System.String that represents the current System.Object.</returns>
        public override string ToString()
        {
            BDictionary d = new BDictionary();

            return(value.ToString(CultureInfo.InvariantCulture));
        }