Is there any standard naming convention for VB.NET ?
Based your programming experiences, would like to share your naming convention for VB.NET ?
Are there any guides for this kind of good practice besides patterns & practices Guidance Explorer and Guidance Share ?
Thanks. Happy Weekend.
Use the following rules when you name procedures, constants, variables, and arguments in a Visual Basic module: You must use a letter as the first character. You can't use a space, period (.), exclamation mark (!), or the characters @, &, $, # in the name. Name can't exceed 255 characters in length.
The naming rules for variables in VB are as follows: the name must begin with a letter, followed by 0 or more letters, numbers, and/or underscore characters. the name may not contain spaces. the name cannot be a keyword.
File naming best practices:Files should be named consistently. File names should be short but descriptive (<25 characters) (Briney, 2015) Avoid special characters or spaces in a file name. Use capitals and underscores instead of periods or spaces or slashes.
The variable name must start with an alphabetic character, then it can consist of characters A-Z, 0-9, @, #, _ and the special characters £ and $.
As Mehrdad said, VB.NET follows the General .NET naming conventions. More specificly:
I use this guide on "net Naming Conventions and Programming Standards - Best Practices": http://10rem.net/articles/net-naming-conventions-and-programming-standards---best-practices
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With