 | StringXToSnakeCase Method |
Converts the specified camelCase or PascalCase string to snake_case. For example, "localPosition" or
"LocalPosition" becomes "local_position".
Namespace: CandlelightAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntaxpublic static string ToSnakeCase(
this string compoundWord
)
Parameters
- compoundWord
- Type: SystemString
A string in camelCase or PascalCase.
Return Value
Type:
String
The supplied camelCase or PascalCase string converted into underscore-delimited, lowercased words.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also