Enum CasingMethod
- Namespace
- Cuemon
- Assembly
- Cuemon.Kernel.dll
Specifies ways that a string must be converted in terms of casing.
public enum CasingMethod
Fields
Default = 0Indicates default behavior which is leaving the casing unaltered, hence allowing mixed casing.
LowerCase = 1Indicates that all characters will be converted to lowercase.
TitleCase = 3Indicates that characters will be converted to Title Case.
UpperCase = 2Indicates that all characters will be converted to UPPERCASE.
Examples
The following example demonstrates how to use CasingMethod to control string casing transformations.
using Cuemon;
using System;
namespace MyApp.Examples;
public class CasingMethodExample
{
public void Demonstrate()
{
var lower = CasingMethod.LowerCase;
var upper = CasingMethod.UpperCase;
var title = CasingMethod.TitleCase;
Console.WriteLine(lower); // outputs: LowerCase
Console.WriteLine(upper); // outputs: UpperCase
Console.WriteLine(title); // outputs: TitleCase
}
}