Amazon.Runtime.Internal.Util.IniFile.EnsureSectionExists C# (CSharp) Метод

EnsureSectionExists() публичный Метод

Check if the section exists. If not, append it to the end of the file.
public EnsureSectionExists ( string sectionName ) : void
sectionName string section to ensure exists
Результат void
        public void EnsureSectionExists(string sectionName)
        {
            var lineNumber = 0;
            if (!TrySeekSection(sectionName, ref lineNumber))
            {
                Lines.Add(sectionNamePrefix + sectionName + sectionNameSuffix);
            }
        }