public static bool TryGetValue <T>(this IIniData iniData, string sectionName, string propertyName, out T propertyValue) { IIniSection section = iniData.GetSection(sectionName); if (!(section is null)) { return(section.TryGetValue(propertyName, out propertyValue)); } propertyValue = default; return(false); }
public static bool HasSection(this IIniData iniData, string name) { return(!(iniData.GetSection(name) is null)); }