Class ConvertCamelConventionWithNumbers
- Namespace
- SunamoConverters.Converts
- Assembly
- SunamoConverters.dll
Converts text to and from camel case convention with number support.
public class ConvertCamelConventionWithNumbers
- Inheritance
-
ConvertCamelConventionWithNumbers
- Inherited Members
- Extension Methods
Methods
FromConvention(string, bool)
Converts text from camel case convention to regular text.
public static string FromConvention(string text, bool isFirstCharUpper = false)
Parameters
textstringThe camel case text to convert.
isFirstCharUpperboolIf true, the first character will be uppercase.
Returns
- string
The text converted from camel case.
IsCamelWithNumber(string)
Checks if the text is in camel case format with numbers.
public static bool IsCamelWithNumber(string text)
Parameters
textstringThe text to check.
Returns
- bool
True if the text is in camel case with numbers, false otherwise.
ToConvention(string)
Converts text to camel case convention (does not include numbers).
public static string ToConvention(string text)
Parameters
textstringThe text to convert.
Returns
- string
The text converted to camel case.