ChobiQ.DoubanFMAPICodePack.StorageManager.SaveLastChannel C# (CSharp) Method

SaveLastChannel() public static method

public static SaveLastChannel ( Channel channel ) : void
channel Channel
return void
        public static void SaveLastChannel(Channel channel)
        {
            IFormatter format = new BinaryFormatter();

            format.Serialize(
                s_channelFile.Open(FileMode.OpenOrCreate),
                channel);
        }

Usage Example

Example #1
0
 /// <summary>
 /// Saves current playing channel to local storage.
 /// </summary>
 public void SaveCurrentChannel()
 {
     StorageManager.SaveLastChannel(CurrentChannel);
 }