- 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.
- Apache Spark 2.x Machine Learning Cookbook
- FLL+WRO樂高機器人競賽教程:機械、巡線與PID
- Python編程實戰
- 小學生C++創意編程(視頻教學版)
- Terraform:多云、混合云環境下實現基礎設施即代碼(第2版)
- Machine Learning in Java
- Mastering Git
- Spring Boot+Vue全棧開發實戰
- Developing SSRS Reports for Dynamics AX
- Rust游戲開發實戰
- Hadoop大數據分析技術
- Photoshop CC移動UI設計案例教程(全彩慕課版·第2版)
- Java EE Web應用開發基礎
- Visual Basic 程序設計實踐教程
- Mastering Leap Motion