Click here to Skip to main content
15,880,469 members
Home / Discussions / C#
   

C#

 
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 
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 
Hi,

There is not direct way to use the For Each statement in CodeDom, however, you may try the following iteration technique to get the desired results.

IEnumerator e = dt.Rows.GetEnumerator();
while(e.MoveNext())
{
DataRow row = (DataRow)e.Current;
myList.Add(ConvertToObject(row));
}

You can generate a while loop using the CodeIterationStatement class, but not specify the InitStatement and IncrementStatement properties.

Hope this helps Smile | :) .

Regards,
John Adams
ComponentOne LLC

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.