public static SteamManifest Load(string path) { using (var sr = new StreamReader(path)) { string nameLine = sr.ReadLine(); SteamManifestSection mainSection = ReadSection(nameLine, sr); return(new SteamManifest(path, mainSection.Name, mainSection.Elements)); } }
public static async Task <SteamManifest> LoadAsync(string path) { using (var sr = new StreamReader(path)) { string nameLine = await sr.ReadLineAsync().ConfigureAwait(false); SteamManifestSection mainSection = await ReadSectionAsync(nameLine, sr); return(new SteamManifest(path, mainSection.Name, mainSection.Elements)); } }