Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
GeneralRe: Class withing Class Pin
Blake Coverett9-Oct-03 16:34
Blake Coverett9-Oct-03 16:34 
GeneralRe: Class withing Class Pin
Nick Seng9-Oct-03 17:31
Nick Seng9-Oct-03 17:31 
GeneralRe: Class withing Class Pin
David Stone9-Oct-03 18:36
sitebuilderDavid Stone9-Oct-03 18:36 
GeneralRe: Class withing Class Pin
Blake Coverett9-Oct-03 20:44
Blake Coverett9-Oct-03 20:44 
GeneralRe: Class withing Class Pin
David Stone9-Oct-03 21:37
sitebuilderDavid Stone9-Oct-03 21:37 
GeneralRe: Class withing Class Pin
David Stone9-Oct-03 18:41
sitebuilderDavid Stone9-Oct-03 18:41 
GeneralRe: Class withing Class Pin
Nick Seng9-Oct-03 19:59
Nick Seng9-Oct-03 19:59 
GeneralCodes Pin
Anonymous9-Oct-03 12:00
Anonymous9-Oct-03 12:00 
Hey,

I have to explain my problem with an example.
I have a lot of codes to use in my application ex. sexe : man/woman; language: English/French/...

Let say sexe : man and woman are the descriptions of the code 1 and 2. These codes are in my database.

Do I make a class sexe and how?

Because in my application I have an object person and that person have a sexe.
I will program like follows :
if (person.sexe.man)
{..some code..}

and not like I am doing now

if (person.sexe = 1)
{..here some code to treath the person as a man...}
This is not very readable.

So, my question is what do I have to do with the object sexe (how will I build it) and how I use it in my person object.

thanks in advance
bene

GeneralRe: Codes Pin
Daniel M. Edwards9-Oct-03 17:56
Daniel M. Edwards9-Oct-03 17:56 
GeneralRe: Codes Pin
David Stone9-Oct-03 18:27
sitebuilderDavid Stone9-Oct-03 18:27 
GeneralRe: Codes Pin
leppie10-Oct-03 7:13
leppie10-Oct-03 7:13 
GeneralRe: Codes Pin
David Stone10-Oct-03 8:07
sitebuilderDavid Stone10-Oct-03 8:07 
GeneralAdvanced GUIs in C# Pin
Ronoc9-Oct-03 10:15
Ronoc9-Oct-03 10:15 
GeneralRe: Advanced GUIs in C# Pin
J. Dunlap9-Oct-03 10:53
J. Dunlap9-Oct-03 10:53 
GeneralRe: Advanced GUIs in C# Pin
David Stone9-Oct-03 18:50
sitebuilderDavid Stone9-Oct-03 18:50 
GeneralRe: Advanced GUIs in C# Pin
J. Dunlap9-Oct-03 19:18
J. Dunlap9-Oct-03 19:18 
GeneralRe: Advanced GUIs in C# Pin
David Stone9-Oct-03 20:03
sitebuilderDavid Stone9-Oct-03 20:03 
GeneralRe: Advanced GUIs in C# Pin
Blake Coverett9-Oct-03 11:51
Blake Coverett9-Oct-03 11:51 
GeneralRe: Advanced GUIs in C# Pin
J. Dunlap9-Oct-03 11:57
J. Dunlap9-Oct-03 11:57 
GeneralRe: Advanced GUIs in C# Pin
jparsons9-Oct-03 13:51
jparsons9-Oct-03 13:51 
GeneralRe: Advanced GUIs in C# Pin
Ronoc9-Oct-03 23:54
Ronoc9-Oct-03 23:54 
GeneralCan't use C# dll in MFC - Program won't run Pin
IrishSonic9-Oct-03 10:00
IrishSonic9-Oct-03 10:00 
QuestionPreload assemblies to increase performance? Pin
Carl Mercier9-Oct-03 8:18
Carl Mercier9-Oct-03 8:18 
AnswerRe: Preload assemblies to increase performance? Pin
J. Dunlap9-Oct-03 8:46
J. Dunlap9-Oct-03 8:46 
GeneralRe: Preload assemblies to increase performance? Pin
Carl Mercier9-Oct-03 8:48
Carl Mercier9-Oct-03 8:48 

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.