2 using System.Collections.Generic;
9 public partial class FileManager
29 throw new FileNotFoundException();
32 T result = state.
Load<
T>( obj,
"default" );
41 return Load<T>( obj, fileName );
52 state.
Save( obj, typeof(
T ),
"default" );
67 public void Save(
object obj,
string fileName )
70 state.
Save( obj, obj.GetType(),
"default" );
74 public void TrySave(
object obj,
string fileName )
78 Save( obj, fileName );
90 public void Export( Stream objStream,
string fileName )
92 using ( var f =
Create( fileName ) )
94 objStream.CopyStreamTo( f.Stream );
object Load(object obj, Type type, string name)
LoadState BeginLoad(string fileName)
void TrySave(object obj, string fileName)
void Save(object obj, Type objType, string name)
void Save(object obj, string fileName)
T TryLoad< T >(T obj, string fileName)
T Load< T >(T obj, string fileName)
abstract bool Exists(string fileName)
void Export(Stream objStream, string fileName)
Vie virran sisällön tiedostoon.
void TrySave< T >(T obj, string fileName)
StorageFile Create(string fileName)
void Save< T >(T obj, string fileName)
SaveState BeginSave(string tag)