示例#1
0
 public static void Save(T serializableObject, string fileName, IsolatedStorageFile isolatedStorageDirectory)
 {
     ObjectXMLSerializer <T> .SaveToDocumentFormat(serializableObject, null, fileName, isolatedStorageDirectory);
 }
示例#2
0
 public static void Save(T serializableObject, string path, Type[] extraTypes)
 {
     ObjectXMLSerializer <T> .SaveToDocumentFormat(serializableObject, extraTypes, path, null);
 }
示例#3
0
 public static void Save(T serializableObject, string path)
 {
     ObjectXMLSerializer <T> .SaveToDocumentFormat(serializableObject, null, path, null);
 }
示例#4
0
 public static T Load(string fileName, IsolatedStorageFile isolatedStorageDirectory, Type[] extraTypes)
 {
     return(ObjectXMLSerializer <T> .LoadFromDocumentFormat(null, fileName, isolatedStorageDirectory));
 }
示例#5
0
 public static T Load(string path, Type[] extraTypes)
 {
     return(ObjectXMLSerializer <T> .LoadFromDocumentFormat(extraTypes, path, null));
 }
示例#6
0
 public static T Load(string path)
 {
     return(ObjectXMLSerializer <T> .LoadFromDocumentFormat(null, path, null));
 }