mirror of
https://gitee.com/chinware/atomui.git
synced 2024-12-02 03:47:52 +08:00
22 lines
683 B
Markdown
22 lines
683 B
Markdown
|
# Code Styles
|
|||
|
|
|||
|
## C# Naming Style
|
|||
|
- Type, NameSpace, Method, Property, Event: **UpperCamelCase**
|
|||
|
- Interface: **IUpperCamelCase**
|
|||
|
- Type parameter: **TUpperCamelCase**
|
|||
|
- Local variable, Parameter: **lowerCamelCase**
|
|||
|
- Public Field (基本不用): **UpperCamelCase**
|
|||
|
- Private Field: **_lowerCamelCase**
|
|||
|
|
|||
|
- Control Template Part Name: **PART_UpperCamelCase**
|
|||
|
- Control Pseudo Class Name: **STATE_UpperCamelCase**
|
|||
|
|
|||
|
## 其他
|
|||
|
- 使用Rider配置,尽量和Rider的建议保持一致即可。
|
|||
|
- 不要在一行中声明多个变量;
|
|||
|
|
|||
|
## Xaml
|
|||
|
- 使用 XamlStyler插件,添加配置。
|
|||
|
- 不超过两个属性的共用一行。
|
|||
|
- Name:UpperCamelCase。
|
|||
|
- 结构复杂增加注释。
|