public static PFSConnectModel GetPFSConnectModel(string fileContent) { using (IniParser parser = new IniParser(fileContent)) { return parser.IniModel; } }
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; } } }