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

C#

 
GeneralRe: Is this reflection? Pin
eggie520-Nov-05 8:53
eggie520-Nov-05 8:53 
GeneralRe: Is this reflection? Pin
Stanciu Vlad20-Nov-05 10:01
Stanciu Vlad20-Nov-05 10:01 
QuestionHelp with Delegates and Events Pin
tawammar19-Nov-05 11:37
tawammar19-Nov-05 11:37 
AnswerRe: Help with Delegates and Events Pin
mikanu19-Nov-05 21:09
mikanu19-Nov-05 21:09 
QuestionCustom Object Question Pin
LighthouseJ19-Nov-05 11:32
LighthouseJ19-Nov-05 11:32 
AnswerRe: Custom Object Question Pin
Chris Austin19-Nov-05 12:08
Chris Austin19-Nov-05 12:08 
GeneralRe: Custom Object Question Pin
LighthouseJ19-Nov-05 12:54
LighthouseJ19-Nov-05 12:54 
QuestionDefine Constant class for Const variable Pin
Yanshof19-Nov-05 8:56
Yanshof19-Nov-05 8:56 
Hi All

I writing some application in C#.
In my application i have a lot of Const variable , and for this reason i add class with the name "Constant" to my application.
In this class i add this lines

public class Constant
{
public const long A = 0x1;
public const long B = 0x2;
.
.
.
.
}

Now - i want to add to each class in my application this class- i mean that i want for each class to use this Constant variables.
My question : is there some way to do it with out create in each class that use Constant class without use the Constant class constructor ?

I think i can use "nameSpace" but i dont know how to do it without use the Constant class constructor.

Some one can help me?

[in C++ i add the header file to some file (in MFC) that each *.cpp file have it and in this way each *.cpp file know about each #define that i add to the file.]
AnswerRe: Define Constant class for Const variable Pin
Stanciu Vlad19-Nov-05 9:39
Stanciu Vlad19-Nov-05 9:39 
GeneralRe: Define Constant class for Const variable Pin
David Stone19-Nov-05 10:05
sitebuilderDavid Stone19-Nov-05 10:05 
GeneralRe: Define Constant class for Const variable Pin
Stanciu Vlad19-Nov-05 10:50
Stanciu Vlad19-Nov-05 10:50 
GeneralRe: Define Constant class for Const variable Pin
David Stone19-Nov-05 11:03
sitebuilderDavid Stone19-Nov-05 11:03 
GeneralRe: Define Constant class for Const variable Pin
Robert Rohde19-Nov-05 13:05
Robert Rohde19-Nov-05 13:05 
QuestionWhat Shockwave flash object needs to load flashes on an application with interaction between Csharp and Flash work well? Pin
3DoorsDown19-Nov-05 5:11
3DoorsDown19-Nov-05 5:11 
QuestionRuning a process Pin
Yoyosch19-Nov-05 4:19
Yoyosch19-Nov-05 4:19 
AnswerRe: Runing a process Pin
User 665819-Nov-05 6:09
User 665819-Nov-05 6:09 
GeneralRe: Runing a process Pin
Yoyosch19-Nov-05 6:41
Yoyosch19-Nov-05 6:41 
GeneralRe: Runing a process Pin
User 665819-Nov-05 6:43
User 665819-Nov-05 6:43 
GeneralRe: Runing a process Pin
Yoyosch19-Nov-05 7:52
Yoyosch19-Nov-05 7:52 
GeneralRe: Runing a process Pin
Curtis Schlak.20-Nov-05 6:48
Curtis Schlak.20-Nov-05 6:48 
GeneralRe: Runing a process Pin
Yoyosch20-Nov-05 8:38
Yoyosch20-Nov-05 8:38 
GeneralRe: Runing a process Pin
Curtis Schlak.20-Nov-05 13:49
Curtis Schlak.20-Nov-05 13:49 
GeneralRe: Runing a process Pin
Yoyosch22-Nov-05 2:12
Yoyosch22-Nov-05 2:12 
QuestionServicedComponent implementing IEnumerable Pin
napsack19-Nov-05 3:00
napsack19-Nov-05 3:00 
QuestionPerformence in c# Pin
dinh van hai18-Nov-05 22:39
dinh van hai18-Nov-05 22:39 

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.