Warning: Undefined array key "REMOTE_USER" in /kieuns/www/lib/plugins/googleanalytics/action.php on line 61 c# 사용하는 오브젝트 이름 짓는 규칙 [GINS WIKI 긴스 위키] Warning: Undefined array key "stylesheets" in /kieuns/www/inc/StyleUtils.php on line 102

사용자 도구

사이트 도구


language:csharp:object-naming-conventions
Warning: Trying to access array offset on value of type bool in /kieuns/www/inc/html.php on line 1164 Warning: Trying to access array offset on value of type bool in /kieuns/www/inc/html.php on line 1168 Warning: Trying to access array offset on value of type bool in /kieuns/www/inc/html.php on line 1171 Warning: Trying to access array offset on value of type bool in /kieuns/www/inc/html.php on line 1172 Warning: Undefined array key 2 in /kieuns/www/inc/html.php on line 1453

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
language:csharp:object-naming-conventions [2013/12/29 14:53]
kieuns 새로 만듦
language:csharp:object-naming-conventions [2024/04/23 22:44] (현재)
줄 1: 줄 1:
 +====== c# 사용하는 오브젝트 이름 짓는 규칙 ======
  
 +딱히 정해진 규칙은 없는 것 같다. VB 사용자를 위해서는 규칙을 정한 적이 있는 것 같지만, VC6 시절이고. ( [[http://msdn.microsoft.com/en-us/library/aa263493(v=vs.60).aspx|Object Naming Conventions]] )
 +
 +위키북에 있는게 참고할만 할듯. ( [[http://en.wikibooks.org/wiki/C_Sharp_Programming/Naming|C# Programming/Naming]] )
 +
 +asp.net에서 참고해서 정리했다는 prefix
 +
 +^ Control           ^ Prefix     ^ Example             ^
 +| Label             | lbl        | lblSurname          |
 +| TextBox           | txt        | txtSurname          |
 +| DataGrid          | dg         | dgResults           |
 +| GridView          | gv         | gvResults2          |
 +| Button            | btn        | btnSave             |
 +| ImageButton       | iBtn       | iBtnSave            |
 +| Hyperlink         | lnk        | lnkHomePage         |
 +| DropDownList      | ddl        | ddlCompany          |
 +| ListBox           | lst        | lstCompany          |
 +| DataList          | dLst       | dlstAddress         |
 +| DataSet           | ds         | dsInvoices          |
 +| DataTable         | dt         | dtClients           |
 +| DataRow           | dr         | drUser              |
 +| Repeater          | rep        | repSection          |
 +| Checkbox          | chk        | chkMailList         |
 +| CheckBoxList      | chk        | chkAddress          |
 +| RadioButton       | rBtn       | rBtnSex             |
 +| RadioButtonList   | rBtn       | rBtnAgeGroup        |
 +| Image             | img        | imgLogo             |
 +| Panel             | pnl        | pnlSevtion          |
 +| PlaceHolder       | plh        | plhHeader           |
 +| Calendar          | txt        | txtMyDate           |
 +| AdRotator         | adr        | adrBanner           |
 +| Table             | tbl        | tblResults          |
 +| [All] Validators  | val (N/A)  | valCreditCardNumber |
 +| ValidationSummary | vals (N/A) | valsErrors          |
 +
 +
 +
 +
 +{{tag> 네이밍 c#네이밍}}