This article is a mirror article of machine translation, please click here to jump to the original article.

View: 25255|Reply: 1

[Source] .NET/C# converts underscored field names to large hump forms

[Copy link]
Posted on 2021-8-16 14:28:31 | | | |
In the naming of database fields, it is usually used to underscore words to form a table name, and when doing Java or .NET code generators, the class names are in the form of a big hump, how to convert the underscore field name to a big hump form?

For example, tab_name -> TabName, the effect is as follows:



This article can be implemented using both methods, and the code is as follows.

Method 1:


Method 2:

(End)





Previous:"Dynamic Replacement" for .NET Plugins
Next:C# BYTE[] and hexadecimal strings are converted to each other
Posted on 2023-3-24 19:41:36 |
Learn to learn hump transformation
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com