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

C#

 
GeneralRe: Use 'objects' from other functions Pin
Pete O'Hanlon2-Sep-07 9:50
mvePete O'Hanlon2-Sep-07 9:50 
AnswerRe: Use 'objects' from other functions Pin
Christian Graus2-Sep-07 8:35
protectorChristian Graus2-Sep-07 8:35 
QuestionCode execution time Pin
Heba Ghoz2-Sep-07 7:38
Heba Ghoz2-Sep-07 7:38 
AnswerRe: Code execution time Pin
Guffa2-Sep-07 8:34
Guffa2-Sep-07 8:34 
GeneralRe: Code execution time Pin
Paul Conrad2-Sep-07 11:04
professionalPaul Conrad2-Sep-07 11:04 
GeneralRe: Code execution time Pin
Guffa3-Sep-07 0:41
Guffa3-Sep-07 0:41 
GeneralRe: Code execution time Pin
Paul Conrad3-Sep-07 5:46
professionalPaul Conrad3-Sep-07 5:46 
QuestionIterate through the class Pin
d97kti2-Sep-07 7:36
d97kti2-Sep-07 7:36 
I have a problem:

I have a class that contains some classes that have some basic types in it, something like this:

class mainClass
{
class oneType
{
public string name = "The One Name";
public string adress = "The One Adress";
public bool isMoving = true;
}
class twoType
{
public string name = "The Two Name";
public string adress = "The Two Adress";
public bool isMoving = false;
}
}

Can someone tell me how can I iterate through the mainClass and take out values for each class in it (class oneType and twoType). I wont to use foreach loop to do some operation on the values in each class. It's maybe smarter to use some other type to describe oneType and twoType.
Please answer, it's urgent. Thanks!



d97kti
AnswerRe: Iterate through the class Pin
Christian Graus2-Sep-07 7:38
protectorChristian Graus2-Sep-07 7:38 
GeneralRe: Iterate through the class Pin
d97kti2-Sep-07 8:53
d97kti2-Sep-07 8:53 
QuestionHow to hide caption and still able to size the window? Pin
AghaKhan2-Sep-07 7:20
AghaKhan2-Sep-07 7:20 
QuestionHow to hide caption and still able to size the window? Pin
AghaKhan2-Sep-07 7:16
AghaKhan2-Sep-07 7:16 
AnswerRe: How to hide caption and still able to size the window? Pin
Christian Graus2-Sep-07 7:25
protectorChristian Graus2-Sep-07 7:25 
GeneralRe: How to hide caption and still able to size the window? Pin
AghaKhan2-Sep-07 10:21
AghaKhan2-Sep-07 10:21 
GeneralRe: How to hide caption and still able to size the window? Pin
Christian Graus2-Sep-07 11:49
protectorChristian Graus2-Sep-07 11:49 
QuestionSave Pin
Assaf822-Sep-07 6:28
Assaf822-Sep-07 6:28 
AnswerRe: Save Pin
Christian Graus2-Sep-07 6:44
protectorChristian Graus2-Sep-07 6:44 
GeneralRe: Save Pin
Assaf822-Sep-07 6:48
Assaf822-Sep-07 6:48 
GeneralRe: Save Pin
Christian Graus2-Sep-07 6:57
protectorChristian Graus2-Sep-07 6:57 
GeneralRe: Save Pin
Assaf822-Sep-07 7:01
Assaf822-Sep-07 7:01 
GeneralRe: Save Pin
Christian Graus2-Sep-07 7:07
protectorChristian Graus2-Sep-07 7:07 
GeneralRe: Save Pin
Assaf822-Sep-07 7:13
Assaf822-Sep-07 7:13 
GeneralRe: Save Pin
Christian Graus2-Sep-07 7:24
protectorChristian Graus2-Sep-07 7:24 
GeneralRe: Save Pin
Assaf822-Sep-07 7:28
Assaf822-Sep-07 7:28 
GeneralRe: Save Pin
Christian Graus2-Sep-07 7:32
protectorChristian Graus2-Sep-07 7: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.