Click here to Skip to main content
15,921,179 members
Home / Discussions / C#
   

C#

 
GeneralRe: StructLayoutAttribute and type safety Pin
Vega0219-Oct-06 16:48
Vega0219-Oct-06 16:48 
QuestionProcess.ProccessName coming up idle in seperate thread. Pin
Sunset Towers18-Oct-06 12:02
Sunset Towers18-Oct-06 12:02 
GeneralRe: Process.ProccessName coming up idle in seperate thread. [modified] Pin
Anthony Mushrow18-Oct-06 13:55
professionalAnthony Mushrow18-Oct-06 13:55 
AnswerRe: Process.ProccessName coming up idle in seperate thread. Pin
Anthony Mushrow18-Oct-06 14:24
professionalAnthony Mushrow18-Oct-06 14:24 
GeneralRe: Process.ProccessName coming up idle in seperate thread. Pin
Sunset Towers18-Oct-06 15:10
Sunset Towers18-Oct-06 15:10 
Questionmake a class property an array of an instantiated class? Pin
mmatteson18-Oct-06 11:56
mmatteson18-Oct-06 11:56 
AnswerRe: make a class property an array of an instantiated class? Pin
Christian Graus18-Oct-06 11:59
protectorChristian Graus18-Oct-06 11:59 
GeneralRe: make a class property an array of an instantiated class? Pin
mmatteson19-Oct-06 6:10
mmatteson19-Oct-06 6:10 
Okay so let me see if i understand you correctly. I have two classes. Class A and Class B. I give class A 5 properties
int prop1(){}
int prop2(){}
int prop3(){}
int prop4(){}
classB prop5(){}

what i would like to do is to create a 5th property and make its type equal to ClassB. but i would also like to index this property too. BTW Class B also has some properties to it. So in the end i would be able to access my items like this:

classA xyz = new classA();
xyz.prop1=1;
xyz.prop2=2;
xyz.prop3=3;
xyz.prop4=4;

xyz.prop5[0].prop1=1;
xyz.prop5[0].prop2=2;

xyz.prop5[1].prop1=1;
xyz.prop5[1].prop2=2;

I remember doing stuff like this a while ago in VB6 but i'm pretty new to C# and i'm just learning out to do this sort of stuff. I hope that explain helps a little bit more. I think i understand what your saying though.
AnswerRe: make a class property an array of an instantiated class? Pin
Andrew Rissing18-Oct-06 12:16
Andrew Rissing18-Oct-06 12:16 
GeneralRe: make a class property an array of an instantiated class? Pin
mmatteson18-Oct-06 16:32
mmatteson18-Oct-06 16:32 
QuestionGraphics Pin
Areff18-Oct-06 10:59
Areff18-Oct-06 10:59 
AnswerRe: Graphics Pin
Christian Graus18-Oct-06 11:03
protectorChristian Graus18-Oct-06 11:03 
GeneralRe: Graphics Pin
Areff18-Oct-06 11:12
Areff18-Oct-06 11:12 
GeneralRe: Graphics Pin
Christian Graus18-Oct-06 11:33
protectorChristian Graus18-Oct-06 11:33 
GeneralRe: Graphics Pin
V.19-Oct-06 4:51
professionalV.19-Oct-06 4:51 
AnswerRe: Graphics Pin
V.19-Oct-06 4:50
professionalV.19-Oct-06 4:50 
AnswerRe: Graphics Pin
Bekjong19-Oct-06 5:37
Bekjong19-Oct-06 5:37 
QuestionObjectDisposedException Pin
Yustme18-Oct-06 9:47
Yustme18-Oct-06 9:47 
AnswerRe: ObjectDisposedException Pin
Christian Graus18-Oct-06 10:02
protectorChristian Graus18-Oct-06 10:02 
GeneralRe: ObjectDisposedException Pin
Yustme18-Oct-06 10:23
Yustme18-Oct-06 10:23 
AnswerRe: ObjectDisposedException Pin
Le centriste19-Oct-06 4:23
Le centriste19-Oct-06 4:23 
QuestionPartial Classes - What's The Big Deal? Pin
#realJSOP18-Oct-06 9:22
professional#realJSOP18-Oct-06 9:22 
AnswerRe: Partial Classes - What's The Big Deal? Pin
Andrew Rissing18-Oct-06 9:27
Andrew Rissing18-Oct-06 9:27 
GeneralRe: Partial Classes - What's The Big Deal? Pin
Christian Graus18-Oct-06 10:04
protectorChristian Graus18-Oct-06 10:04 
GeneralRe: Partial Classes - What's The Big Deal? Pin
Andrew Rissing18-Oct-06 11:57
Andrew Rissing18-Oct-06 11:57 

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.