You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Guidelines(8th Edition).xml
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -96,11 +96,9 @@
96
96
<guidelinekey="Ch06_bb622bd"severity="DO"section="Coding"subsection="Fields">DO use public static readonly modified fields for predefined object instances prior to C# 6.0.</guideline>
97
97
<guidelinekey="Ch06_fda9a36"severity="AVOID"section="Coding"subsection="Fields">AVOID changing a public readonly modified field in pre-C# 6.0 to a read-only automatically implemented property in C# 6.0 (or later) if version API compatibility is required.</guideline>
98
98
<guidelinekey="Ch06_d19d6d7"severity="AVOID"section="Coding"subsection="Fields">AVOID publicly exposed nested types. The only exception is if the declaration of such a type is unlikely or pertains to an advanced customization scenario.</guideline>
99
-
<guidelinekey="Ch08_5f240f5"severity="DO"section="Coding"subsection="Fields">DO use PascalCasing and a leading underscore and an “I” prefix for interface names.</guideline>
100
-
<guidelinekey="Ch06_d75e3ef"severity="AVOID"section="Coding"subsection="Fields">AVOID naming fields with camelCase.</guideline>
99
+
<guidelinekey="Ch08_5f240f5"severity="DO"section="Coding"subsection="Fields">DO name fields with PascalCase and a leading underscore and an “I” prefix for interface names.</guideline>
101
100
<guidelinekey="Ch06_30a3139"severity="AVOID"section="Coding"subsection="Fields">AVOID constant fields for values that will change over time.</guideline>
102
101
<guidelinekey="Ch06_8030561"severity="DO"section="Coding"subsection="Fields">DO use constant fields for values that will never change.</guideline>
103
-
<guidelineseverity="DO"section="Coding"subsection="Fields">DO name fields with PascalCase and a leading underscore.</guideline>
104
102
<guidelinekey="Ch06_d80065c"severity="DO"section="Coding"subsection="Fields">DO declare all instance fields as private (and expose them via a property).</guideline>
105
103
<guidelinekey="Ch06_389b3f9"severity="CONSIDER"section="Coding"subsection="Fields">CONSIDER initializing static fields inline rather than explicitly using static constructors or declaration assigned values.</guideline>
106
104
<guidelinekey="Ch05_0d6dee5"severity="CONSIDER"section="Coding"subsection="Files">CONSIDER organizing the directory hierarchy for source code files to match the namespace hierarchy.</guideline>
0 commit comments