Click here to Skip to main content
15,915,094 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to change a theam in c# ( winform ) Pin
Łukasz Nowakowski4-Aug-10 1:28
Łukasz Nowakowski4-Aug-10 1:28 
QuestionPls help! how to prevent user to delete prefix value in my texbox Pin
crisjala3-Aug-10 19:29
crisjala3-Aug-10 19:29 
AnswerRe: Pls help! how to prevent user to delete prefix value in my texbox Pin
Gerry Schmitz3-Aug-10 19:46
mveGerry Schmitz3-Aug-10 19:46 
AnswerRe: Pls help! how to prevent user to delete prefix value in my texbox Pin
OriginalGriff3-Aug-10 22:03
mveOriginalGriff3-Aug-10 22:03 
QuestionCheck whether value is there in a column table Pin
seeism3-Aug-10 19:06
seeism3-Aug-10 19:06 
AnswerRe: Check whether value is there in a column table Pin
seeism3-Aug-10 21:03
seeism3-Aug-10 21:03 
AnswerRe: Check whether value is there in a column table Pin
David Skelly3-Aug-10 22:21
David Skelly3-Aug-10 22:21 
QuestionProper naming style for global variable? Pin
Necrowizard3-Aug-10 13:09
Necrowizard3-Aug-10 13:09 
Hello,

I was wondering whats the proper way to name your global variables.
I use Visual Studio 2010, and I use two add-ons: ReSharper and Stylecop, to learn how make better code.

However, their advises are conflicting.

For example, if I'd have this code:

public class Example
{
    private static object _staticExample; //(1)
    private const object CONSTEXAMPLE = null;  //(2)
    private object normalExamle;


    public void main()
    {
        this.normalExamle = ""; //(3.1)
        normalExamle = ""; //(3.2)
    }
}


(1): How am I suppose to call this? ReShaper tells me it should be _lowerCamelCase, however Stylecop tells me to not start with an underscore[^]

(2): What about all capital constants? I see them all the time. However ReShaper tells me it should be UpperCamelCase. Stylecop does not care about casing or it being full capital, only that the first letter is a capital.[^]

(3): How am I suppose to use the variable? Stylecop says I'm suppose to use this. (3.1)[^] However, when I do that ReShaper says this. is redundant, and that I should remove it (3.2).
Whats the right way to do this?

Thanks Smile | :)
AnswerRe: Proper naming style for global variable? Pin
I Believe In GOD3-Aug-10 13:18
I Believe In GOD3-Aug-10 13:18 
AnswerRe: Proper naming style for global variable? Pin
Keith Barrow3-Aug-10 13:18
professionalKeith Barrow3-Aug-10 13:18 
AnswerRe: Proper naming style for global variable? Pin
PIEBALDconsult3-Aug-10 15:32
mvePIEBALDconsult3-Aug-10 15:32 
QuestionScreen resolution in web site Pin
brunoseixas3-Aug-10 7:13
brunoseixas3-Aug-10 7:13 
AnswerRe: Screen resolution in web site Pin
Luc Pattyn3-Aug-10 7:41
sitebuilderLuc Pattyn3-Aug-10 7:41 
GeneralRe: Screen resolution in web site Pin
brunoseixas3-Aug-10 8:02
brunoseixas3-Aug-10 8:02 
Question64bit hashing algorithm Pin
reza assar3-Aug-10 6:15
reza assar3-Aug-10 6:15 
AnswerRe: 64bit hashing algorithm Pin
Ennis Ray Lynch, Jr.3-Aug-10 6:49
Ennis Ray Lynch, Jr.3-Aug-10 6:49 
GeneralRe: 64bit hashing algorithm Pin
reza assar3-Aug-10 7:02
reza assar3-Aug-10 7:02 
GeneralRe: 64bit hashing algorithm Pin
Ennis Ray Lynch, Jr.3-Aug-10 7:25
Ennis Ray Lynch, Jr.3-Aug-10 7:25 
GeneralRe: 64bit hashing algorithm Pin
reza assar3-Aug-10 19:43
reza assar3-Aug-10 19:43 
GeneralRe: 64bit hashing algorithm Pin
Ennis Ray Lynch, Jr.4-Aug-10 4:10
Ennis Ray Lynch, Jr.4-Aug-10 4:10 
QuestionI have a repetition in crystal report because the datasource are two joined tables? Pin
firas_hamzeh3-Aug-10 4:28
firas_hamzeh3-Aug-10 4:28 
AnswerRe: I have a repetition in crystal report because the datasource are two joined tables? Pin
Pete O'Hanlon3-Aug-10 4:44
mvePete O'Hanlon3-Aug-10 4:44 
GeneralRe: I have a repetition in crystal report because the datasource are two joined tables? Pin
firas_hamzeh3-Aug-10 4:52
firas_hamzeh3-Aug-10 4:52 
GeneralRe: I have a repetition in crystal report because the datasource are two joined tables? Pin
Dave Kreskowiak3-Aug-10 10:02
mveDave Kreskowiak3-Aug-10 10:02 
AnswerRe: I have a repetition in crystal report because the datasource are two joined tables? Pin
akhil khare3-Aug-10 21:40
akhil khare3-Aug-10 21:40 

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.