- 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.
- 現(xiàn)代C++編程:從入門到實踐
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- Designing Machine Learning Systems with Python
- Intel Galileo Essentials
- Java系統(tǒng)分析與架構(gòu)設(shè)計
- Vue.js前端開發(fā)基礎(chǔ)與項目實戰(zhàn)
- Getting Started with CreateJS
- 深入淺出Windows API程序設(shè)計:編程基礎(chǔ)篇
- Instant 960 Grid System
- HTML5入門經(jīng)典
- 大學計算機基礎(chǔ)實驗指導(dǎo)
- 現(xiàn)代C++編程實戰(zhàn):132個核心技巧示例(原書第2版)
- Illustrator CS6設(shè)計與應(yīng)用任務(wù)教程
- Practical GIS
- Python Programming for Arduino