- Learning C# by Developing Games with Unity 5.x(Second Edition)
- Greg Lukosek
- 158字
- 2021-07-09 20:03:34
Beginning variable names with lowercase
You should begin a variable name with a lowercase because it helps distinguish between a class name and a variable name in your code. There are some other guides in the C# documentation as well, but we don't need to worry about them at this stage. Component names (class names) begin with a capital letter. For example, it's easy to know that Transform
is a class and transform
is a variable.
There are, of course, exceptions to this general rule, and every programmer has a preferred way of using lowercase, uppercase, and perhaps an underscore to begin a variable name. In the end, you will have to decide upon a naming convention that you like. If you read the Unity forums, you will notice that there are some heated debates on naming variables. In this book, I will show you my preferred way, but you can use whatever is more comfortable for you.
- 自制編譯器
- Docker進階與實戰
- 區塊鏈架構與實現:Cosmos詳解
- Python Deep Learning
- 跟老齊學Python:輕松入門
- Python程序設計案例教程
- The Data Visualization Workshop
- Learn React with TypeScript 3
- Mastering Apache Spark 2.x(Second Edition)
- 軟件測試技術指南
- Java程序設計
- Application Development with Parse using iOS SDK
- C語言程序設計
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- C#程序設計基礎入門教程