6 public partial class FileManager
26 throw new FileNotFoundException();
29 T result = state.
Load<
T>( obj,
"default" );
38 return Load<T>( obj, fileName );
46 public void Save<T>( T obj,
string fileName )
49 state.
Save( obj, typeof(
T ),
"default" );
64 public void Save(
object obj,
string fileName )
67 state.
Save( obj, obj.GetType(),
"default" );
71 public void TrySave(
object obj,
string fileName )
75 Save( obj, fileName );
87 public void Export( Stream objStream,
string fileName )
89 using ( var f =
Create( fileName ) )
91 objStream.CopyStreamTo( f.Stream );
SaveState BeginSave(string tag)
T Load< T >(T obj, string fileName)
void TrySave< T >(T obj, string fileName)
T TryLoad< T >(T obj, string fileName)
StorageFile Create(string fileName)
Luo uuden tiedoston
void Export(Stream objStream, string fileName)
Vie virran sisällön tiedostoon.
void Save< T >(T obj, string fileName)
void TrySave(object obj, string fileName)
void Save(object obj, string fileName)
virtual bool Exists(string fileName)
Kertoo onko tiedosto tai hakemisto olemassa.
LoadState BeginLoad(StorageFile file, string fileName)
LoadState BeginLoad(string fileName)
object Load(object obj, Type type, string name)
void Save(object obj, Type objType, string name)