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

C#

 
GeneralRe: C# coding style question Pin
BillWoodruff5-Sep-13 18:23
professionalBillWoodruff5-Sep-13 18:23 
GeneralRe: C# coding style question Pin
Gary Wheeler6-Sep-13 0:48
Gary Wheeler6-Sep-13 0:48 
GeneralRe: C# coding style question Pin
MarkRHolbrook6-Sep-13 4:40
MarkRHolbrook6-Sep-13 4:40 
GeneralRe: C# coding style question Pin
Gary Wheeler6-Sep-13 4:53
Gary Wheeler6-Sep-13 4:53 
GeneralRe: C# coding style question Pin
BillWoodruff6-Sep-13 6:02
professionalBillWoodruff6-Sep-13 6:02 
GeneralRe: C# coding style question Pin
MarkRHolbrook6-Sep-13 6:09
MarkRHolbrook6-Sep-13 6:09 
GeneralRe: C# coding style question Pin
BillWoodruff6-Sep-13 5:51
professionalBillWoodruff6-Sep-13 5:51 
GeneralRe: C# coding style question Pin
Nicholas Marty5-Sep-13 3:26
professionalNicholas Marty5-Sep-13 3:26 
Just to clarify:
C#
static bool notAvailableOutsideFormClassScope = true;


is in fact NOT private. Neither is it public. The default is internal (scope=assembly). As a default this makes the most sense in my opinion (regardless if having a default makes sense at all)

I still specify the visibility for every class (and member). Just because I don't like relying on defaults Wink | ;)

Edit:
See Access Modifiers (C# Programming Guide) (MSDN)[^] First paragraph of the section "Class and Struct Accessibility"

Edit2:
Regarding Resharper (At least in Version 6.1) you let Resharper suggest explicit access modifiers: Smile | :)
-> Resharper -> Options... -> Code Editing -> Formatting Style -> Other -> Modifiers -> "Use explicit private modifier" / "Use explicit internal modifier"

modified 5-Sep-13 9:35am.

GeneralRe: C# coding style question Pin
BillWoodruff5-Sep-13 18:32
professionalBillWoodruff5-Sep-13 18:32 
GeneralRe: C# coding style question Pin
Nicholas Marty5-Sep-13 20:54
professionalNicholas Marty5-Sep-13 20:54 
GeneralRe: C# coding style question Pin
BillWoodruff6-Sep-13 4:35
professionalBillWoodruff6-Sep-13 4:35 
GeneralRe: C# coding style question Pin
Nicholas Marty6-Sep-13 5:15
professionalNicholas Marty6-Sep-13 5:15 
GeneralRe: C# coding style question Pin
PIEBALDconsult5-Sep-13 3:39
mvePIEBALDconsult5-Sep-13 3:39 
AnswerRe: C# coding style question Pin
Rakesh Meel4-Sep-13 20:48
professionalRakesh Meel4-Sep-13 20:48 
AnswerRe: C# coding style question Pin
Ricardo Kajihara4-Sep-13 21:33
Ricardo Kajihara4-Sep-13 21:33 
AnswerRe: C# coding style question Pin
Christopher Kenis5-Sep-13 1:04
professionalChristopher Kenis5-Sep-13 1:04 
AnswerRe: C# coding style question Pin
Eytukan5-Sep-13 7:21
Eytukan5-Sep-13 7:21 
GeneralRe: C# coding style question Pin
BillWoodruff5-Sep-13 18:35
professionalBillWoodruff5-Sep-13 18:35 
GeneralRe: C# coding style question Pin
Eytukan5-Sep-13 19:02
Eytukan5-Sep-13 19:02 
AnswerRe: C# coding style question Pin
V.6-Sep-13 1:48
professionalV.6-Sep-13 1:48 
QuestionThread Progress Bar Pin
juliogyn4-Sep-13 8:31
juliogyn4-Sep-13 8:31 
AnswerRe: Thread Progress Bar Pin
Forbiddenx4-Sep-13 9:01
Forbiddenx4-Sep-13 9:01 
GeneralRe: Thread Progress Bar Pin
BillWoodruff4-Sep-13 17:23
professionalBillWoodruff4-Sep-13 17:23 
GeneralRe: Thread Progress Bar Pin
Forbiddenx6-Sep-13 1:16
Forbiddenx6-Sep-13 1:16 
AnswerRe: Thread Progress Bar Pin
Dave Kreskowiak4-Sep-13 9:03
mveDave Kreskowiak4-Sep-13 9:03 

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.