Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reflection Question Pin
PIEBALDconsult1-May-08 19:07
mvePIEBALDconsult1-May-08 19:07 
GeneralRe: Reflection Question Pin
MrColeyted1-May-08 19:22
MrColeyted1-May-08 19:22 
AnswerRe: Reflection Question Pin
J a a n s1-May-08 22:35
professionalJ a a n s1-May-08 22:35 
GeneralRe: Reflection Question Pin
MrColeyted1-May-08 23:00
MrColeyted1-May-08 23:00 
QuestionXSD class generation tool Pin
cbadal1-May-08 15:52
cbadal1-May-08 15:52 
AnswerRe: XSD class generation tool Pin
cbadal3-May-08 5:20
cbadal3-May-08 5:20 
AnswerRe: XSD class generation tool Pin
sri_00997-Jan-10 19:55
sri_00997-Jan-10 19:55 
Questionpassing argmumnet to cmd from and application Pin
Naveed7271-May-08 14:58
Naveed7271-May-08 14:58 
AnswerRe: passing argmumnet to cmd from and application Pin
Ennis Ray Lynch, Jr.1-May-08 15:03
Ennis Ray Lynch, Jr.1-May-08 15:03 
GeneralRe: passing argmumnet to cmd from and application Pin
Naveed7271-May-08 21:40
Naveed7271-May-08 21:40 
AnswerRe: passing argmumnet to cmd from and application Pin
Luc Pattyn1-May-08 22:36
sitebuilderLuc Pattyn1-May-08 22:36 
QuestionTransfer info from Form1 to Form2 Pin
nelsonpaixao1-May-08 14:35
nelsonpaixao1-May-08 14:35 
AnswerRe: Transfer info from Form1 to Form2 Pin
Christian Graus1-May-08 15:57
protectorChristian Graus1-May-08 15:57 
AnswerRe: Transfer info from Form1 to Form2 Pin
tika/ajay1-May-08 19:50
tika/ajay1-May-08 19:50 
GeneralRe: Transfer info from Form1 to Form2 Pin
Christian Graus1-May-08 21:37
protectorChristian Graus1-May-08 21:37 
AnswerRe: Transfer info from Form1 to Form2 Pin
Bhim Prakash Singh2-May-08 0:12
Bhim Prakash Singh2-May-08 0:12 
QuestionRe: Transfer info from Form1 to Form2 Pin
nelsonpaixao4-May-08 16:35
nelsonpaixao4-May-08 16:35 
Questionadditional tasks in setup project Pin
Knowledgestudent1-May-08 14:31
Knowledgestudent1-May-08 14:31 
AnswerRe: additional tasks in setup project Pin
Christian Graus1-May-08 15:59
protectorChristian Graus1-May-08 15:59 
GeneralRe: additional tasks in setup project Pin
Knowledgestudent1-May-08 22:21
Knowledgestudent1-May-08 22:21 
GeneralRe: additional tasks in setup project Pin
Christian Graus2-May-08 12:04
protectorChristian Graus2-May-08 12:04 
Questionmultiple datatypes inside the same array? Pin
Grubious1-May-08 13:51
Grubious1-May-08 13:51 
I have am reading from an external file and then converting that file into an array. The array is comma delimited, as seen here:

222,1.07181,0.933001
333,1.67566,0.596777
444,0.026708,37.4413

now, the first part of each line is a code, so that if the array was in any order, i could still find what i need. However, i want to turn this code into a string, because 222 doesn't mean anything to your average person. I have everything set up, but it wont compile because i cannot get my .ToString() or Convert.ToString() to work. Here is the code where I am receiving the error, help is much appreciated.

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(','); // this was originally double.Parse(ToFrom[0]);
rates[lineCount, 0] = ToFrom[0].ToString();
rates[lineCount, 1] = double.Parse(ToFrom[1]);
rates[lineCount, 2] = double.Parse(ToFrom[2]);
lineCount++;
}

sr.Close();
}
}
AnswerRe: multiple datatypes inside the same array? Pin
Grubious1-May-08 14:53
Grubious1-May-08 14:53 
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 

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.