Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
AnswerRe: multiple datatypes inside the same array? Pin
Grubious1-May-08 14:53
Grubious1-May-08 14:53 
fixed. Had to add:

Dictionary<string, double[]> ratesDictionary = new Dictionary<string, double[]>();

and change my importRates to:

private void importRates()
{
string path = Settings.Default.FileName; //this["FileName"];
if (!File.Exists(path))
{
MessageBox.Show("no file found at " + path);
return;
}
int lineCount = 0;
StreamReader sr = new StreamReader(path);
{
String line;
while ((line = sr.ReadLine()) != null)
{
string[] ToFrom = line.Split(',');
ratesDictionary.Add(ToFrom[0].ToString(), new double[2]{double.Parse(ToFrom[1]), double.Parse(ToFrom[2])});
lineCount++;
}
sr.Close();
}
}

Poke tongue | ;-P
QuestionAnonymous instance implementing IDisposable interface Pin
Spacix One1-May-08 12:00
Spacix One1-May-08 12:00 
AnswerRe: Anonymous instance implementing IDisposable interface Pin
N a v a n e e t h1-May-08 20:50
N a v a n e e t h1-May-08 20:50 
RantRe: Anonymous instance implementing IDisposable interface Pin
Spacix One2-May-08 3:14
Spacix One2-May-08 3:14 
QuestionIs there a way to the label the ticks in the TrackBar Pin
bscaer1-May-08 11:28
bscaer1-May-08 11:28 
AnswerRe: Is there a way to the label the ticks in the TrackBar Pin
Christian Graus1-May-08 11:51
protectorChristian Graus1-May-08 11:51 
QuestionCodeDom Problem. Pin
hdv2121-May-08 10:02
hdv2121-May-08 10:02 
AnswerRe: CodeDom Problem. Pin
John_Adams1-May-08 22:17
John_Adams1-May-08 22:17 
QuestionThreads in Windows service Pin
RoyceF1-May-08 8:38
RoyceF1-May-08 8:38 
AnswerRe: Threads in Windows service Pin
PIEBALDconsult1-May-08 9:31
mvePIEBALDconsult1-May-08 9:31 
AnswerRe: Threads in Windows service Pin
Urs Enzler1-May-08 10:03
Urs Enzler1-May-08 10:03 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 11:06
RoyceF1-May-08 11:06 
GeneralRe: Threads in Windows service Pin
Gareth H1-May-08 11:19
Gareth H1-May-08 11:19 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 11:36
RoyceF1-May-08 11:36 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 11:27
RoyceF1-May-08 11:27 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 11:40
RoyceF1-May-08 11:40 
QuestionWindows Mobile 5 - moving selected form items up when osk activated Pin
Spacedmc1-May-08 7:57
Spacedmc1-May-08 7:57 
AnswerRe: Windows Mobile 5 - moving selected form items up when osk activated Pin
Arjun Marwaha1-May-08 11:30
Arjun Marwaha1-May-08 11:30 
Questionimport/Export Xml into a hastable Pin
Member 40084921-May-08 6:18
Member 40084921-May-08 6:18 
AnswerRe: import/Export Xml into a hastable Pin
Gareth H1-May-08 7:55
Gareth H1-May-08 7:55 
AnswerRe: import/Export Xml into a hastable Pin
Anthony Mushrow1-May-08 8:12
professionalAnthony Mushrow1-May-08 8:12 
Questionyield return Pin
George_George1-May-08 4:23
George_George1-May-08 4:23 
AnswerRe: yield return Pin
led mike1-May-08 4:41
led mike1-May-08 4:41 
GeneralRe: yield return Pin
George_George1-May-08 4:45
George_George1-May-08 4:45 
GeneralRe: yield return Pin
User 66581-May-08 6:32
User 66581-May-08 6:32 

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.