Click here to Skip to main content
15,896,278 members
Home / Discussions / C#
   

C#

 
GeneralRe: Setup and Deployment Issue! Pin
Sr...Frank16-Dec-09 8:49
Sr...Frank16-Dec-09 8:49 
GeneralRe: Setup and Deployment Issue! Pin
Keith Barrow16-Dec-09 9:10
professionalKeith Barrow16-Dec-09 9:10 
GeneralRe: Setup and Deployment Issue! Pin
Sr...Frank16-Dec-09 9:16
Sr...Frank16-Dec-09 9:16 
GeneralRe: Setup and Deployment Issue! Pin
Seishin#16-Dec-09 9:31
Seishin#16-Dec-09 9:31 
GeneralRe: Setup and Deployment Issue! Pin
Sr...Frank16-Dec-09 9:50
Sr...Frank16-Dec-09 9:50 
QuestionMoving from validation function to validation read only Property Pin
abcurl16-Dec-09 3:45
abcurl16-Dec-09 3:45 
AnswerRe: Moving from validation function to validation read only Property Pin
Richard MacCutchan16-Dec-09 7:33
mveRichard MacCutchan16-Dec-09 7:33 
AnswerRe: Moving from validation function to validation read only Property Pin
Luc Pattyn16-Dec-09 7:41
sitebuilderLuc Pattyn16-Dec-09 7:41 
Hi,

none of that is correct, for several reasons:
1. if a property or method returns "false" its type should be boolean, not void.
2. property and method names normally shouldn't contain digits
3. method names normally contain a verb, and property names may or may not (preferably not, although IsValid would be acceptable)
4. private members use pascalCase, public ones CamelCase.
5. properties should always be public (protected could be OK, private is a bit strange).
6. properties don't take parentheses.

So choose one of these:
public boolean IsFolderValid() { ... return false;}

public boolean FolderValid {
    get { ... return false; }
}


Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


Questiondates and databases Pin
Ryan Minor16-Dec-09 3:37
Ryan Minor16-Dec-09 3:37 
AnswerRe: dates and databases Pin
Pete O'Hanlon16-Dec-09 3:44
mvePete O'Hanlon16-Dec-09 3:44 
GeneralRe: dates and databases Pin
Luc Pattyn16-Dec-09 7:49
sitebuilderLuc Pattyn16-Dec-09 7:49 
GeneralRe: dates and databases Pin
Ravi Bhavnani16-Dec-09 8:23
professionalRavi Bhavnani16-Dec-09 8:23 
GeneralRe: dates and databases Pin
Pete O'Hanlon16-Dec-09 9:34
mvePete O'Hanlon16-Dec-09 9:34 
GeneralRe: dates and databases Pin
Luc Pattyn16-Dec-09 9:47
sitebuilderLuc Pattyn16-Dec-09 9:47 
GeneralRe: dates and databases Pin
PIEBALDconsult16-Dec-09 10:37
mvePIEBALDconsult16-Dec-09 10:37 
GeneralRe: dates and databases Pin
Pete O'Hanlon16-Dec-09 11:16
mvePete O'Hanlon16-Dec-09 11:16 
GeneralRe: dates and databases Pin
Luc Pattyn16-Dec-09 11:26
sitebuilderLuc Pattyn16-Dec-09 11:26 
GeneralRe: dates and databases Pin
Pete O'Hanlon16-Dec-09 11:33
mvePete O'Hanlon16-Dec-09 11:33 
GeneralRe: dates and databases Pin
Luc Pattyn16-Dec-09 11:48
sitebuilderLuc Pattyn16-Dec-09 11:48 
AnswerRe: dates and databases Pin
PIEBALDconsult16-Dec-09 3:45
mvePIEBALDconsult16-Dec-09 3:45 
GeneralRe: dates and databases Pin
Luc Pattyn16-Dec-09 10:46
sitebuilderLuc Pattyn16-Dec-09 10:46 
GeneralRe: dates and databases Pin
PIEBALDconsult16-Dec-09 11:57
mvePIEBALDconsult16-Dec-09 11:57 
AnswerRe: dates and databases Pin
David Skelly16-Dec-09 22:39
David Skelly16-Dec-09 22:39 
QuestionA network-related or instance-specific error occurred while establishing a connection to SQL Server Pin
Tridip Bhattacharjee16-Dec-09 2:00
professionalTridip Bhattacharjee16-Dec-09 2:00 
AnswerRe: A network-related or instance-specific error occurred while establishing a connection to SQL Server PinPopular
#realJSOP16-Dec-09 2:52
professional#realJSOP16-Dec-09 2:52 

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.