Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
QuestionConnection test for SAP Netweaver and Microsoft SharePointList in C# Pin
Member 1138787727-Apr-15 19:13
Member 1138787727-Apr-15 19:13 
AnswerRe: Connection test for SAP Netweaver and Microsoft SharePointList in C# Pin
Pete O'Hanlon27-Apr-15 23:12
mvePete O'Hanlon27-Apr-15 23:12 
QuestionGet string website c# [HELP ME PLS] Pin
Member 1106300127-Apr-15 12:00
Member 1106300127-Apr-15 12:00 
AnswerRe: Get string website c# [HELP ME PLS] Pin
Sascha Lefèvre27-Apr-15 14:54
professionalSascha Lefèvre27-Apr-15 14:54 
Questionc# covert a for loop to for each (arraylist) Pin
Aindriu Mac Giolla Eoin27-Apr-15 9:29
Aindriu Mac Giolla Eoin27-Apr-15 9:29 
GeneralRe: c# covert a for loop to for each (arraylist) Pin
PIEBALDconsult27-Apr-15 9:39
mvePIEBALDconsult27-Apr-15 9:39 
GeneralRe: c# covert a for loop to for each (arraylist) Pin
Aindriu Mac Giolla Eoin27-Apr-15 9:42
Aindriu Mac Giolla Eoin27-Apr-15 9:42 
AnswerRe: c# covert a for loop to for each (arraylist) Pin
Richard Deeming27-Apr-15 10:17
mveRichard Deeming27-Apr-15 10:17 
Try this:
C#
foreach (Student currentStudent in studentarraylist)
{
    Console.WriteLine("Student {0} {1}", currentStudent.FirstName, currentStudent.LastName);
}


You should try to avoid the ArrayList class[^], as it's not strongly typed. Use the List<T> class[^] (or one of the other generic collection types) instead.

Generics (C# Programming Guide)[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: c# covert a for loop to for each (arraylist) Pin
Aindriu Mac Giolla Eoin27-Apr-15 10:28
Aindriu Mac Giolla Eoin27-Apr-15 10:28 
AnswerRe: c# covert a for loop to for each (arraylist) Pin
Marjan Venema30-Apr-15 8:02
professionalMarjan Venema30-Apr-15 8:02 
QuestionC# Datepicker value not saved in MySql database Pin
ahmed_one27-Apr-15 0:20
ahmed_one27-Apr-15 0:20 
AnswerRe: C# Datepicker value not saved in MySql database Pin
Gerry Schmitz27-Apr-15 19:47
mveGerry Schmitz27-Apr-15 19:47 
GeneralRe: C# Datepicker value not saved in MySql database Pin
ahmed_one27-Apr-15 20:26
ahmed_one27-Apr-15 20:26 
GeneralRe: C# Datepicker value not saved in MySql database Pin
Gerry Schmitz27-Apr-15 20:56
mveGerry Schmitz27-Apr-15 20:56 
GeneralRe: C# Datepicker value not saved in MySql database Pin
ahmed_one27-Apr-15 21:02
ahmed_one27-Apr-15 21:02 
GeneralRe: C# Datepicker value not saved in MySql database Pin
Gerry Schmitz27-Apr-15 21:33
mveGerry Schmitz27-Apr-15 21:33 
GeneralRe: C# Datepicker value not saved in MySql database Pin
ahmed_one28-Apr-15 3:40
ahmed_one28-Apr-15 3:40 
GeneralRe: C# Datepicker value not saved in MySql database Pin
ahmed_one28-Apr-15 4:18
ahmed_one28-Apr-15 4:18 
GeneralRe: C# Datepicker value not saved in MySql database Pin
Gerry Schmitz28-Apr-15 9:14
mveGerry Schmitz28-Apr-15 9:14 
QuestionWhat is Constructor Overloading in C# .net ? Pin
dhivya.sakthi26-Apr-15 20:35
dhivya.sakthi26-Apr-15 20:35 
AnswerRe: What is Constructor Overloading in C# .net ? Pin
OriginalGriff26-Apr-15 21:28
mveOriginalGriff26-Apr-15 21:28 
AnswerRe: What is Constructor Overloading in C# .net ? Pin
Dr Gadgit27-Apr-15 3:43
Dr Gadgit27-Apr-15 3:43 
AnswerRe: What is Constructor Overloading in C# .net ? Pin
David A. Gray3-May-15 10:19
David A. Gray3-May-15 10:19 
QuestionVideo cutter / merger in C# winfrom Pin
Member 1162007426-Apr-15 7:35
Member 1162007426-Apr-15 7:35 
GeneralRe: Video cutter / merger in C# winfrom Pin
Sascha Lefèvre26-Apr-15 7:46
professionalSascha Lefèvre26-Apr-15 7:46 

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.