コード例 #1
0
 public void Serialize(Resources resources, string filePath)
 {
     ResourcesSerializer.Serialize(filePath, resources);
 }
コード例 #2
0
 public Resources GetResources(string filePath)
 {
     Resources resources = new Resources();
     if (File.Exists(filePath))
     {
         resources = ResourcesSerializer.DeSerialize(filePath);
         resources.createIndex();
     }
     return resources;
 }
コード例 #3
0
ファイル: Resources.cs プロジェクト: kcly3027/knowledge
 public static void Serialize(string filePath, Resources Resources)
 {
     System.Xml.Serialization.XmlSerializer XmlSerializer = new System.Xml.Serialization.XmlSerializer(typeof(Resources));
     System.IO.FileStream FileStream = new System.IO.FileStream(filePath, System.IO.FileMode.Create);
     XmlSerializer.Serialize(FileStream, Resources);
     FileStream.Close();
 }