Click here to Skip to main content
15,908,166 members
Home / Discussions / C#
   

C#

 
AnswerRe: Wrong select query SQLite? Pin
Garth J Lancaster20-Apr-15 20:40
professionalGarth J Lancaster20-Apr-15 20:40 
GeneralRe: Wrong select query SQLite? Pin
DPaul199420-Apr-15 20:43
DPaul199420-Apr-15 20:43 
GeneralRe: Wrong select query SQLite? Pin
Garth J Lancaster20-Apr-15 21:07
professionalGarth J Lancaster20-Apr-15 21:07 
GeneralRe: Wrong select query SQLite? Pin
DPaul199421-Apr-15 0:26
DPaul199421-Apr-15 0:26 
GeneralRe: Wrong select query SQLite? Pin
DPaul199420-Apr-15 20:44
DPaul199420-Apr-15 20:44 
GeneralRe: Wrong select query SQLite? Pin
Garth J Lancaster20-Apr-15 21:08
professionalGarth J Lancaster20-Apr-15 21:08 
GeneralRe: Wrong select query SQLite? Pin
DPaul199421-Apr-15 0:26
DPaul199421-Apr-15 0:26 
GeneralRe: Wrong select query SQLite? Pin
Richard Deeming21-Apr-15 2:30
mveRichard Deeming21-Apr-15 2:30 
QuestionHi! Pin
Member King Fisher20-Apr-15 17:51
Member King Fisher20-Apr-15 17:51 
SuggestionRe: Hi! Pin
Richard MacCutchan20-Apr-15 21:28
mveRichard MacCutchan20-Apr-15 21:28 
QuestionEmpty path name is not legal Pin
DPaul199420-Apr-15 10:12
DPaul199420-Apr-15 10:12 
AnswerRe: Empty path name is not legal Pin
Sascha Lefèvre20-Apr-15 10:18
professionalSascha Lefèvre20-Apr-15 10:18 
GeneralRe: Empty path name is not legal Pin
DPaul199420-Apr-15 10:27
DPaul199420-Apr-15 10:27 
GeneralRe: Empty path name is not legal Pin
Sascha Lefèvre20-Apr-15 10:35
professionalSascha Lefèvre20-Apr-15 10:35 
GeneralRe: Empty path name is not legal Pin
DPaul199420-Apr-15 10:50
DPaul199420-Apr-15 10:50 
GeneralRe: Empty path name is not legal Pin
Sascha Lefèvre20-Apr-15 10:59
professionalSascha Lefèvre20-Apr-15 10:59 
GeneralRe: Empty path name is not legal Pin
dhivya.sakthi21-Apr-15 23:50
dhivya.sakthi21-Apr-15 23:50 
AnswerRe: Empty path name is not legal Pin
Pete O'Hanlon20-Apr-15 10:21
mvePete O'Hanlon20-Apr-15 10:21 
GeneralRe: Empty path name is not legal Pin
DPaul199420-Apr-15 10:27
DPaul199420-Apr-15 10:27 
GeneralRe: Empty path name is not legal Pin
Pete O'Hanlon20-Apr-15 10:46
mvePete O'Hanlon20-Apr-15 10:46 
GeneralRe: Empty path name is not legal Pin
DPaul199420-Apr-15 10:50
DPaul199420-Apr-15 10:50 
QuestionAny rules how to name C# source files? Pin
CRobert45620-Apr-15 5:50
CRobert45620-Apr-15 5:50 
AnswerRe: Any rules how to name C# source files? Pin
Sascha Lefèvre20-Apr-15 5:59
professionalSascha Lefèvre20-Apr-15 5:59 
Well, it sort of gets to the point:
Quote:
Unlike Java, source files can contain more than one top-level public class declaration, and the file name does not need to match any of the classes' names.
So you wouldn't violate an official naming rule by naming your files what you deem most appropriate. Normally they should contain only one class and have the same name as that class because that's what's most intuitive.

In my opinion, it sometimes makes sense to have more than one class in a source file. In that case I would name the file like the class that is either the base class or represents the functionality that is most important within that source file. In some cases, e.g. lots of small classes that serve a very similar purpose, I put them all in a single source file and name it according to the purpose of those classes. But it should remain the exception from the rule.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

AnswerRe: Any rules how to name C# source files? Pin
Pete O'Hanlon20-Apr-15 7:01
mvePete O'Hanlon20-Apr-15 7:01 
AnswerRe: Any rules how to name C# source files? Pin
Eddy Vluggen20-Apr-15 8:11
professionalEddy Vluggen20-Apr-15 8:11 

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.