Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Any rules how to name C# source files? Pin
Dennis_E20-May-15 3:01
professionalDennis_E20-May-15 3:01 
QuestionButton enabled and disable using EnabledChanged method Pin
DPaul199420-Apr-15 4:34
DPaul199420-Apr-15 4:34 
AnswerRe: Button enabled and disable using EnabledChanged method Pin
Pete O'Hanlon20-Apr-15 4:47
mvePete O'Hanlon20-Apr-15 4:47 
GeneralRe: Button enabled and disable using EnabledChanged method Pin
DPaul199420-Apr-15 4:52
DPaul199420-Apr-15 4:52 
GeneralRe: Button enabled and disable using EnabledChanged method Pin
Pete O'Hanlon20-Apr-15 5:05
mvePete O'Hanlon20-Apr-15 5:05 
GeneralRe: Button enabled and disable using EnabledChanged method Pin
DPaul199420-Apr-15 5:07
DPaul199420-Apr-15 5:07 
AnswerRe: Button enabled and disable using EnabledChanged method Pin
BillWoodruff20-Apr-15 19:54
professionalBillWoodruff20-Apr-15 19:54 
AnswerRe: Button enabled and disable using EnabledChanged method Pin
David A. Gray3-May-15 10:39
David A. Gray3-May-15 10:39 
QuestionRouteCollection.Ignore doesn't work Pin
Member 1162251320-Apr-15 4:07
Member 1162251320-Apr-15 4:07 
AnswerRe: RouteCollection.Ignore doesn't work Pin
Dave Kreskowiak20-Apr-15 5:32
mveDave Kreskowiak20-Apr-15 5:32 
GeneralRe: RouteCollection.Ignore doesn't work Pin
Member 1162251320-Apr-15 5:42
Member 1162251320-Apr-15 5:42 
GeneralRe: RouteCollection.Ignore doesn't work Pin
Dave Kreskowiak20-Apr-15 9:17
mveDave Kreskowiak20-Apr-15 9:17 
QuestionChange Frame Rate of IP CAM Using C# Pin
Django_Untaken20-Apr-15 3:10
Django_Untaken20-Apr-15 3:10 
AnswerRe: Change Frame Rate of IP CAM Using C# Pin
Richard MacCutchan20-Apr-15 3:37
mveRichard MacCutchan20-Apr-15 3:37 
AnswerRe: Change Frame Rate of IP CAM Using C# Pin
Pete O'Hanlon20-Apr-15 3:42
mvePete O'Hanlon20-Apr-15 3:42 

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.