Click here to Skip to main content
15,881,719 members
Home / Discussions / C#
   

C#

 
GeneralRe: help me in c# Pin
Dave Kreskowiak16-May-12 7:59
mveDave Kreskowiak16-May-12 7:59 
GeneralRe: help me in c# Pin
Pete O'Hanlon16-May-12 1:41
mvePete O'Hanlon16-May-12 1:41 
Questionhelp me Pin
ri198715-May-12 23:35
ri198715-May-12 23:35 
AnswerRe: help me Pin
Pete O'Hanlon15-May-12 23:47
mvePete O'Hanlon15-May-12 23:47 
GeneralRe: help me Pin
ri198716-May-12 0:07
ri198716-May-12 0:07 
GeneralRe: help me Pin
ri198716-May-12 0:09
ri198716-May-12 0:09 
GeneralRe: help me Pin
Killzone DeathMan16-May-12 0:23
Killzone DeathMan16-May-12 0:23 
Questiondefines Pin
columbos1492715-May-12 22:42
columbos1492715-May-12 22:42 
Hello,
How can i create C like defines in C#.
What i did so far is:
1.I created class called Global
C#
class Global
    {
        public const Int32 D_PARAMETER = 5;
        public const Int32 NODE_SIZE = 2*D_PARAMETER;
        public const Int32 NULL = -1;
    }


2.When i want to use some of the const from the class i have to use it like this:
root.Parent = Global.NULL;

3.What can i do so i can only use
NULL
and not
Global.NULL
?

Thanks.
AnswerRe: defines Pin
Pete O'Hanlon15-May-12 22:52
mvePete O'Hanlon15-May-12 22:52 
AnswerRe: defines Pin
Andy41115-May-12 23:29
Andy41115-May-12 23:29 
AnswerRe: defines Pin
PIEBALDconsult16-May-12 3:29
mvePIEBALDconsult16-May-12 3:29 
QuestionUpdate database SQL via C# Pin
jojoba201115-May-12 22:32
jojoba201115-May-12 22:32 
AnswerRe: Update database SQL via C# Pin
Pete O'Hanlon15-May-12 23:21
mvePete O'Hanlon15-May-12 23:21 
QuestionRe: Update database SQL via C# Pin
jojoba201116-May-12 5:52
jojoba201116-May-12 5:52 
AnswerRe: Update database SQL via C# Pin
Pete O'Hanlon16-May-12 6:04
mvePete O'Hanlon16-May-12 6:04 
AnswerRe: Update database SQL via C# Pin
Dave Kreskowiak16-May-12 7:17
mveDave Kreskowiak16-May-12 7:17 
QuestionProject Ideas Pin
solomon20115-May-12 20:12
solomon20115-May-12 20:12 
AnswerRe: Project Ideas Pin
Mycroft Holmes15-May-12 21:22
professionalMycroft Holmes15-May-12 21:22 
Question......... Pin
Qismet15-May-12 19:38
Qismet15-May-12 19:38 
AnswerRe: HOW USE GMap.NET.WindowsForms EXE FILE IN MY PROJECT Pin
Mycroft Holmes15-May-12 21:19
professionalMycroft Holmes15-May-12 21:19 
QuestionUser Redirect To the login page after the idle time it reaches Pin
Mits Machhi15-May-12 18:57
Mits Machhi15-May-12 18:57 
AnswerRe: User Redirect To the login page after the idle time it reaches Pin
Sandeep Mewara15-May-12 20:49
mveSandeep Mewara15-May-12 20:49 
GeneralRe: User Redirect To the login page after the idle time it reaches Pin
Mycroft Holmes15-May-12 21:18
professionalMycroft Holmes15-May-12 21:18 
JokeRe: User Redirect To the login page after the idle time it reaches Pin
Peter_in_278015-May-12 21:44
professionalPeter_in_278015-May-12 21:44 
GeneralRe: User Redirect To the login page after the idle time it reaches Pin
Mycroft Holmes15-May-12 22:14
professionalMycroft Holmes15-May-12 22:14 

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.