ToCasing Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
ToCasing(string, CasingMethod)
Converts the specified value to either lowercase, UPPERCASE, Title Case or unaltered.
public static string ToCasing(this string value, CasingMethod method = CasingMethod.Default)
Parameters
valuestringThe string to extend.
methodCasingMethodThe method to use in the conversion.
Returns
Remarks
Uses InvariantCulture for the conversion.
ToCasing(string, CasingMethod, CultureInfo)
Converts the specified value to either lowercase, UPPERCASE, Title Case or unaltered using the specified culture.
public static string ToCasing(this string value, CasingMethod method, CultureInfo culture)
Parameters
valuestringThe string to extend.
methodCasingMethodThe method to use in the conversion.
cultureCultureInfoThe culture rules to apply the conversion.
Returns
Exceptions
- ArgumentNullException
valuecannot be null -or-culturecannot be null.