public UnrealIniWriter(UnrealIniData data) { if (data == null) { throw new ArgumentNullException("data"); } _data = data; }
public UnrealConfig(string iniPath) { if (string.IsNullOrEmpty(iniPath)) throw new ArgumentException("iniPath"); _iniPath = iniPath; if (File.Exists(_iniPath)) { using(var stream = new FileStream(_iniPath, FileMode.Open)) { _data = new UnrealIniParser(stream).Data; } } else throw new FileNotFoundException("Unable to locate " + _iniPath); }
public UnrealConfig(string iniPath) { if (string.IsNullOrEmpty(iniPath)) { throw new ArgumentException("iniPath"); } _iniPath = iniPath; if (File.Exists(_iniPath)) { using (var stream = new FileStream(_iniPath, FileMode.Open)) { _data = new UnrealIniParser(stream).Data; } } else { throw new FileNotFoundException("Unable to locate " + _iniPath); } }