Click here to Skip to main content
15,914,160 members
Home / Discussions / C#
   

C#

 
QuestionConnection with Oracle9i Pin
sarwarmdgolam6-Jun-07 4:16
sarwarmdgolam6-Jun-07 4:16 
AnswerRe: Connection with Oracle9i Pin
Tarakeshwar Reddy6-Jun-07 5:17
professionalTarakeshwar Reddy6-Jun-07 5:17 
QuestionUsing enumerated types Pin
Dewald6-Jun-07 3:56
Dewald6-Jun-07 3:56 
AnswerRe: Using enumerated types Pin
DavidNohejl6-Jun-07 4:05
DavidNohejl6-Jun-07 4:05 
GeneralRe: Using enumerated types Pin
Dewald6-Jun-07 4:57
Dewald6-Jun-07 4:57 
AnswerRe: Using enumerated types Pin
Guffa6-Jun-07 4:10
Guffa6-Jun-07 4:10 
GeneralRe: Using enumerated types Pin
Dewald6-Jun-07 4:49
Dewald6-Jun-07 4:49 
GeneralRe: Using enumerated types Pin
Dave Kreskowiak6-Jun-07 5:06
mveDave Kreskowiak6-Jun-07 5:06 
Constants are only stored once, like a static. If you have a constant defined in a class and multiple objects created from that class, the runtime won't create multiple copies of the same constants. There will only be one copy of the constants in memory usable by every instance of the class.

In a world where a machine comes with 128M minumum, a few constants, or a few hundred constants, are not going to break the bank. An int32 constant is just 4 bytes. Even if you have 1,000 constants in a class and a thousand objects created from that class, you're still only using 4K for the constants.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Using enumerated types Pin
Guffa6-Jun-07 9:05
Guffa6-Jun-07 9:05 
GeneralRe: Using enumerated types Pin
Dewald6-Jun-07 20:50
Dewald6-Jun-07 20:50 
GeneralRe: Using enumerated types Pin
Guffa6-Jun-07 8:59
Guffa6-Jun-07 8:59 
GeneralRe: Using enumerated types Pin
DavidNohejl6-Jun-07 21:23
DavidNohejl6-Jun-07 21:23 
Questionsending SMS Pin
faldupuja6-Jun-07 3:42
faldupuja6-Jun-07 3:42 
AnswerRe: sending SMS Pin
Dave Herren6-Jun-07 6:36
Dave Herren6-Jun-07 6:36 
QuestionFavourite Icon Pin
vibhas19826-Jun-07 2:49
vibhas19826-Jun-07 2:49 
AnswerRe: Favourite Icon Pin
I Believe In GOD6-Jun-07 2:57
I Believe In GOD6-Jun-07 2:57 
AnswerRe: Favourite Icon Pin
I Believe In GOD6-Jun-07 3:01
I Believe In GOD6-Jun-07 3:01 
AnswerRe: Favourite Icon Pin
Guffa6-Jun-07 3:59
Guffa6-Jun-07 3:59 
Questionupdating data Pin
sneha016-Jun-07 2:19
sneha016-Jun-07 2:19 
AnswerRe: updating data Pin
I Believe In GOD6-Jun-07 2:48
I Believe In GOD6-Jun-07 2:48 
AnswerRe: updating data Pin
ganti.r7-Jun-07 0:21
ganti.r7-Jun-07 0:21 
QuestionStart process Pin
gapfulgence6-Jun-07 2:18
gapfulgence6-Jun-07 2:18 
AnswerRe: Start process Pin
I Believe In GOD6-Jun-07 2:40
I Believe In GOD6-Jun-07 2:40 
AnswerRe: Start process Pin
gapfulgence6-Jun-07 2:49
gapfulgence6-Jun-07 2:49 
QuestionRe: Start process Pin
gapfulgence6-Jun-07 3:04
gapfulgence6-Jun-07 3:04 

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.