P
Pross
I apologize for asking what is probably a real silly question but I am not a
C# programmer. I work in VB but a lot of code examples are in C# and I am
trying to translate some code and I don;t understand what this syntax means:
//------------------------------------------------------------------------------------------------
private void blah()
{
PopHandler foo = new PopHandler("YourServer",110,"YourName","YourPass");
string[] list = foo.GetList();
for (int i = 0; i< list.Length; i++)
{
Console.WriteLine("Getting Mail {0}: {1}",i+1,list);
PopMail Mail = foo.GetMail(i);
Console.WriteLine(@"Sender: {0}
Subject: {1}
Number of Parts:
{2}",Mail[0]["From"],Mail[0]["Subject"],Mail.ParagraphCount);
for (int a = 1; a < Mail.ParagraphCount; a++)
//------------------------------------------------------------------------------------------------
In that code snippit what is the {0}, {1}, and {2}? I hope I've included
enough information .
Paul Ross
C# programmer. I work in VB but a lot of code examples are in C# and I am
trying to translate some code and I don;t understand what this syntax means:
//------------------------------------------------------------------------------------------------
private void blah()
{
PopHandler foo = new PopHandler("YourServer",110,"YourName","YourPass");
string[] list = foo.GetList();
for (int i = 0; i< list.Length; i++)
{
Console.WriteLine("Getting Mail {0}: {1}",i+1,list);
PopMail Mail = foo.GetMail(i);
Console.WriteLine(@"Sender: {0}
Subject: {1}
Number of Parts:
{2}",Mail[0]["From"],Mail[0]["Subject"],Mail.ParagraphCount);
for (int a = 1; a < Mail.ParagraphCount; a++)
//------------------------------------------------------------------------------------------------
In that code snippit what is the {0}, {1}, and {2}? I hope I've included
enough information .
Paul Ross