- 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.
- Getting Started with Gulp(Second Edition)
- Mastering Ember.js
- 精通軟件性能測試與LoadRunner實(shí)戰(zhàn)(第2版)
- 秒懂設(shè)計模式
- SSM輕量級框架應(yīng)用實(shí)戰(zhàn)
- 現(xiàn)代C++編程實(shí)戰(zhàn):132個核心技巧示例(原書第2版)
- Photoshop智能手機(jī)APP界面設(shè)計
- 視窗軟件設(shè)計和開發(fā)自動化:可視化D++語言
- SSH框架企業(yè)級應(yīng)用實(shí)戰(zhàn)
- JavaScript設(shè)計模式與開發(fā)實(shí)踐
- 人件集:人性化的軟件開發(fā)
- Learning Unity Physics
- 給產(chǎn)品經(jīng)理講技術(shù)
- C/C++程序設(shè)計教程:面向過程分冊
- 區(qū)塊鏈社會:區(qū)塊鏈助力國家治理能力現(xiàn)代化