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

TrySeekSection() приватный Метод

private TrySeekSection ( Regex sectionNameRegex, int &lineNumber, string &sectionName ) : bool
sectionNameRegex System.Text.RegularExpressions.Regex
lineNumber int
sectionName string
Результат bool
        private bool TrySeekSection(Regex sectionNameRegex, ref int lineNumber, out string sectionName)
        {
            string currentSectionName = null;
            while (SeekSection(ref lineNumber, out currentSectionName) &&
                !sectionNameRegex.IsMatch(currentSectionName))
            {
                lineNumber++;
            }
            sectionName = currentSectionName;
            return currentSectionName != null && sectionNameRegex.IsMatch(currentSectionName);
        }

Same methods

IniFile::TrySeekSection ( String sectionName, int &lineNumber ) : bool