Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multidimensional Arrays error in fill IList Interface Pin
Eddy Vluggen21-May-21 12:01
professionalEddy Vluggen21-May-21 12:01 
QuestionWhy dictionary puts data inside [] mark? Pin
Alex Dunlop19-May-21 20:26
Alex Dunlop19-May-21 20:26 
QuestionRe: Why dictionary puts data inside [] mark? Pin
Richard MacCutchan19-May-21 21:00
mveRichard MacCutchan19-May-21 21:00 
AnswerRe: Why dictionary puts data inside [] mark? Pin
Alex Dunlop19-May-21 21:04
Alex Dunlop19-May-21 21:04 
GeneralRe: Why dictionary puts data inside [] mark? Pin
Richard MacCutchan19-May-21 21:38
mveRichard MacCutchan19-May-21 21:38 
GeneralRe: Why dictionary puts data inside [] mark? Pin
Richard MacCutchan19-May-21 22:08
mveRichard MacCutchan19-May-21 22:08 
GeneralRe: Why dictionary puts data inside [] mark? Pin
Alex Dunlop19-May-21 22:46
Alex Dunlop19-May-21 22:46 
GeneralRe: Why dictionary puts data inside [] mark? Pin
jsc4219-May-21 23:58
professionaljsc4219-May-21 23:58 
Good spot, @Richard_MacCutchan!

How about changing
C#
string[] my_arr = pair.ToString().Split(',');
my_table_code.Rows.Add(my_arr[0], my_arr[1], my_arr[2]);
to
C#
// This assumes that Key is a single text, not a comma separated list of values like the Value part
string[] my_arr = pair.Value.Split(',');    // Only split the Value (already a string, not the whole KeyValuePair
my_table_code.Rows.Add(pair.Key, my_arr[0], my_arr[1]);   // Prepend the key as the first item listed
?
Note: This is off the top of my head, not tested. Caveat Emptor.

modified 20-May-21 6:05am.

GeneralRe: Why dictionary puts data inside [] mark? Pin
Richard MacCutchan20-May-21 0:50
mveRichard MacCutchan20-May-21 0:50 
AnswerRe: Why dictionary puts data inside [] mark? Pin
BillWoodruff30-May-21 21:05
professionalBillWoodruff30-May-21 21:05 
QuestionGet folders like the one for mega, drop box Pin
Duc Axenn19-May-21 11:35
Duc Axenn19-May-21 11:35 
AnswerRe: Get folders like the one for mega, drop box Pin
Dave Kreskowiak19-May-21 11:58
mveDave Kreskowiak19-May-21 11:58 
GeneralRe: Get folders like the one for mega, drop box Pin
Duc Axenn19-May-21 13:45
Duc Axenn19-May-21 13:45 
GeneralRe: Get folders like the one for mega, drop box Pin
Dave Kreskowiak19-May-21 14:34
mveDave Kreskowiak19-May-21 14:34 
GeneralRe: Get folders like the one for mega, drop box Pin
Duc Axenn19-May-21 21:27
Duc Axenn19-May-21 21:27 
QuestionIs ILMerge still used ? Pin
Maximilien19-May-21 9:05
Maximilien19-May-21 9:05 
AnswerRe: Is ILMerge still used ? Pin
Dave Kreskowiak19-May-21 9:48
mveDave Kreskowiak19-May-21 9:48 
QuestionString.Replace() & Regex.Replace() not working Pin
Mou_kol15-May-21 22:40
Mou_kol15-May-21 22:40 
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Tony Hill15-May-21 23:30
mveTony Hill15-May-21 23:30 
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Mou_kol15-May-21 23:36
Mou_kol15-May-21 23:36 
SuggestionRe: String.Replace() & Regex.Replace() not working Pin
Tony Hill16-May-21 0:04
mveTony Hill16-May-21 0:04 
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Mou_kol16-May-21 0:21
Mou_kol16-May-21 0:21 
AnswerRe: String.Replace() & Regex.Replace() not working Pin
OriginalGriff16-May-21 0:20
mveOriginalGriff16-May-21 0:20 
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Mou_kol16-May-21 0:21
Mou_kol16-May-21 0:21 
AnswerRe: String.Replace() & Regex.Replace() not working Pin
Gerry Schmitz16-May-21 11:04
mveGerry Schmitz16-May-21 11:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.