System.IO.IsolatedStorage.IsolatedStorageFileStream.WriteByte C# (CSharp) Method

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void
        public override void WriteByte(byte value) { }
    }

Usage Example

 public void Save()
 {
     using (IsolatedStorageFileStream fs = container.CreateFile(LocalSettings)) {
         // note: SL seems to prepend a line with a fully qualified name for System.Object + CRLF
         byte[] header = System.Text.Encoding.UTF8.GetBytes(typeof(object).AssemblyQualifiedName);
         fs.Write(header, 0, header.Length);
         fs.WriteByte(13);
         fs.WriteByte(10);
         // and does not seems to need it when reading back...
         DataContractSerializer ser = new DataContractSerializer(settings.GetType());
         ser.WriteObject(fs, settings);
     }
 }
All Usage Examples Of System.IO.IsolatedStorage.IsolatedStorageFileStream::WriteByte