GlueViewOfficialPlugins.Scripting.ExpressionParser.GetStartingAndCount C# (CSharp) Method

GetStartingAndCount() private static method

private static GetStartingAndCount ( RuntimeCsvRepresentation rcr, int requiredIndex, string requiredName, int &startingRow, int &count ) : void
rcr RuntimeCsvRepresentation
requiredIndex int
requiredName string
startingRow int
count int
return void
        private static void GetStartingAndCount(RuntimeCsvRepresentation rcr, int requiredIndex, string requiredName, out int startingRow, out int count)
        {
            startingRow = -1;
            count = 0;

            for (int i = 0; i < rcr.Records.Count; i++)
            {
                if (startingRow == -1)
                {
                    if (rcr.Records[i][requiredIndex] == requiredName)
                    {
                        startingRow = i;
                        count = 1;
                    }
                }
                else if (startingRow != -1)
                {
                    if (string.IsNullOrEmpty(rcr.Records[i][requiredIndex]))
                    {
                        count++;
                    }
                    else
                    {
                        break;
                    }
                }
            }
        }