Horje
camelCase and snakeCase Code Example
camelCase and snakeCase
using System.Text.RegularExpressions;

public class Program 
{
    public static string ToSnakeCase(string str) 
    {
		    return Regex.Replace(str, "[A-Z]", "_$0").ToLower();
    }
    public static string ToCamelCase(string str) 
    {
			  return  Regex.Replace(str, "_[a-z]", delegate(Match m) {
				    return m.ToString().TrimStart('_').ToUpper();
			  });
    }
}
Source: edabit.com




Csharp

Related
Proxy in Config Code Example Proxy in Config Code Example
.net using appsettings variables Code Example .net using appsettings variables Code Example
substring  c# Code Example substring c# Code Example
print to console c# Code Example print to console c# Code Example
Unity audiosource play Code Example Unity audiosource play Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9