private void SetPositionReference(string input) { _vdPostionReference.Clear(); int currentIndex = 0; char currentChar; int iStartIndex = 0, iEndIndex = 0; string tempColumnName = string.Empty; int iColumnIndex = 0; while (currentIndex < input.Length) { currentChar = input[currentIndex++]; while (_vsDelimiter.Contains<char>(currentChar)) { currentIndex++; if (currentIndex >= input.Length) break; currentChar = input[currentIndex]; } iStartIndex = currentIndex; while (!_vsDelimiter.Contains<char>(currentChar)) { currentIndex++; if (currentIndex == input.Length) break; currentChar = input[currentIndex]; } iEndIndex = currentIndex - 1; tempColumnName = input.Substring(iStartIndex, iEndIndex - iStartIndex + 1); _vdPostionReference.Add(iColumnIndex++, tempColumnName); currentIndex++; } }