I have a few lines i borrowed from the codebank here for my orginal vb project
i am having trouble converting it over to c#
in partular the line line.Append(","c)
im just not sure what the c is doing ive been reading through the stringbuilder on msdn but im still not sure what the eqivlancy in c# should be
can anyone help point me in the right direction
thanks
VB Code:
Dim line As New System.Text.StringBuilder Dim index As Integer If header = True Then 'Iterate over all the columns in the table and get the column names. For index = 0 To table.Columns.Count - 1 Step 1 If index > 0 Then 'Put a comma between column names. line.Append(","c) End If 'Precede and follow each column name with a double quote 'and escape each double quote with another double quote. line.Append(""""c) line.Append(table.Columns(index).ColumnName.Replace("""", """""")) line.Append(""""c)




Reply With Quote