Contents Chapter 1 Overview 4
Normative Principles 4
Definition of terms 4
Pascal case 4
Camel case 4
File naming organization 4
1.3.1 File naming 4
1.3.2 File comments 4
Chapter 2 Code Appearance 6
2.1 Column width 6
2.2 Line break 6
2.3 Indentation 6
2.4 Blank line 6
2.5 spaces 6
2.6 Brackets - () 7
2.7 Curly braces - {} 7
Chapter 3 Program Notes 9
3.4 Annotation overview 9
3.2 Documentation comments 9
3.3 C-like annotations 10
3.4 Single-line comments 10
3.5 Annotation tags 10
Chapter 4 Statement 14
4.1 Number of declarations per line 14
4.2 Initialization 14
4.3 Position 14
4.4 Class and interface declarations 15
4.5 Field declaration 15
Chapter 5 Naming Conventions 16
5.1 Naming overview 16
5.2 Case rules 16
5.3 Abbreviations 17
5.4 Namespace 17
5.5 Class 18
5.6 Interface 18
5.7 ATTRIBUTE 19
5.8 Enumeration (ENUM) 19
5.9 Parameters 19
5.10 Method 20
5.11 PROPERTY 20
5.12 Event 21
5.13 Constants (CONST) 22
5.14 Field 23
5.15 Static fields 23
5.16 Collection 24
5.17 Wording 24
Chapter 6 Statements 26
6.1 One statement per line 26
6.2 Compound statements 26
6.3 RETURN statement 26
6.4 IF, IF-ELSE, IF ELSE-IF statements 26
6.4 FOR, FOREACH statement 27
6.5 WHILE statement 27
6.7. DO - WHILE statement 28
6.8. SWITCH - CASE statement 28
6.9. TRY - CATCH Statement 28
6.10. USING block statement 29
6.11. GOTO statement 29
Chapter 7 Control Naming Rules 30
7.1 Naming method 30
7.2 Comparison table of abbreviations of main control names 30
Chapter 8 Others 30
8.1 Expressions 30
8.2 Type conversion 30
Appendix 1: Hungarian Nomenclature 31
Expand