X hits on this document

PDF document

“Beginning Visual C# 2005 Express Edition Video Series” - page 41 / 73

149 views

0 shares

0 downloads

0 comments

41 / 73

BEST PRACTICE: Instead of public fields, use public properties and use private fields as the container for the value and properties as mutators and accessors to the hidden value.

BEST PRACTICE: Use an underscore as an prefix to your private field, then use camel casing for the rest of the name. Example:

_

e n g i n e S i z e o r _ e l a p s e d M i l e a g e

BEST PRACTICE: use camel case when naming private methods. Use pascal case when naming public methods and properties.

Camel Case == engineSize or elapsedMileage Pascal Case == EngineSize or ElapsedMileage

Supplemental Readings for the Express Edition Videos Copyright © 2005 LearnVisualStudio.NET



Document info
Document views149
Page views149
Page last viewedSat Dec 03 05:06:58 UTC 2016
Pages73
Paragraphs821
Words15988

Comments