0% found this document useful (0 votes)
6 views2 pages

Naming Conventions

Visual studio C# naming conventions

Uploaded by

Blacco Floxx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Naming Conventions

Visual studio C# naming conventions

Uploaded by

Blacco Floxx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

C# naming conventions

C# naming conventions are an important part of C# coding standards and best


practice when you are developing a .NET applications. .NET naming conventions are
standards how the naming of variables, methods, classes, and other code elements
should be defined.

Terminology

There are following three terminologies are used to declare C# and .NET naming
standards.

• Camel Case (camelCase): In this standard, the first letter of the word always
in small letter and after that each word starts with a capital letter.
• Pascal Case (PascalCase): In this the first letter of every word is in capital
letter.
• Underscore Prefix (_underScore): For underscore ( __ ), the word after _
use camelCase terminology.
Abbreviations Standard Control
btn Button
cb CheckBox
cbl CheckBoxList
ddl DropDownList
fu FileUpload
hdn HiddenField
hlk Hyperlink
img Image
lbl Label
lbtn LinkButton
mv MultiView
pnl Panel
txt TextBox
DataGrid dtg
imb ImageButton
lst ListBox
dtl DataList
rep Repeater
rdo RadioButton
rdl RadioButtonList
phd Placeholder
tbl Table
gv GridView
dtv DetailView
fv FormView

An example of how to use the abbreviation with Standard


controls in your code:

For a button that will be used to calculate a salary -


btnCalcSal

For a textbox that will receive a persons surname -


txtSurname

For a radio button that will select a persons food choice -


rdoBraaiWors

You might also like