atomui/docs/Code Style.md

22 lines
683 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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插件添加配置。
- 不超过两个属性的共用一行。
- NameUpperCamelCase。
- 结构复杂增加注释。