示例#1
0
 public static PFSConnectModel GetPFSConnectModel(string fileContent)
 {
     using (IniParser parser = new IniParser(fileContent))
     {
         return parser.IniModel;
     }
 }
示例#2
0
 public static PFSConnectModel GetPFSConnectModel()
 {
     using (System.IO.StreamReader iniFile =   new System.IO.StreamReader(Common.DEFAULT_FILE_PATH))
     {
         string fileContent = iniFile.ReadToEnd();
         using (IniParser parser = new IniParser(fileContent))
         {
             return parser.IniModel;
         }
     }
 }