Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.
New is underlined " ')' expected" (although that was after I added a space after headerMatches)
Private Shared Function ParseColumns(tableHtml As String) As DataColumn() Dim headerMatches As MatchCollection = Regex.Matches(tableHtml, HeaderPattern, ExpressionOptions) Return (From headerMatch In headerMatchesNew DataColumn(headerMatch.Groups(1).ToString())).ToArray() End Function
New is underlined " ')' expected"
''' <summary> ''' For tables which do not specify header cells we must generate DataColumns based on the number ''' of cells in a row (we assume all rows have the same number of cells). ''' </summary> ''' <param name="rowMatches">A collection of all the rows in the HTML table we wish to generate columns for</param> ''' <returns>A set of DataColumns based on the number of celss in the first row of the input HTML table</returns> Private Shared Function GenerateColumns(rowMatches As MatchCollection) As DataColumn() Dim columnCount As Integer = Regex.Matches(rowMatches(0).ToString(), CellPattern, ExpressionOptions).Count Return (From index In Enumerable.Range(0, columnCount)New DataColumn("Column " & Convert.ToString(index))).ToArray() End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.