String.toPascalCase Method
Returns a string formatted in Pascal case.
object.toPascalCase ()
Arguments
- object
- Required. Always the name of a String object.
Return Value
The String.toPascalCase method returns a copy of the string formatted in Pascal case.
Remarks
The following example illustrates the use of the String.toPascalCase method.
var s = "QuarterlyExpenditureAmount";
Console.Writeln(s.toCamelCase());
Console.Writeln(s.toDashCase());
Console.Writeln(s.toPascalCase());
Console.Writeln(s.toProperCase());
Console.Writeln(s.toSentenceCase());
Console.Writeln(s.toUnderscoreCase());
s = "Quarterly_expenditure -amount";
Console.Writeln(s.toCamelCase());
Console.Writeln(s.toDashCase());
Console.Writeln(s.toPascalCase());
Console.Writeln(s.toProperCase());
Console.Writeln(s.toSentenceCase());
Console.Writeln(s.toUnderscoreCase());
Requirements
|