Skip to main content

Description

Converts a string to UpperCamelCase (also known as PascalCase) format by removing non-alphanumeric characters and capitalizing the first letter of each word including the first.

Syntax

Parameters

Returns

Type: string The input string converted to UpperCamelCase format. Returns null if input is null.

Examples

Example 1: Basic Usage

Output:

Example 2: Converting Class Names

Output:

Example 3: Normalizing Entity Names

Notes

  • Returns null for null input
  • Removes all non-alphanumeric characters
  • First character is always uppercase (unlike camelCase)
  • Also known as PascalCase
  • Useful for class names, type names, and entity naming conventions

See Also

Frequently Asked Questions

In upperCamelCase (PascalCase) the first letter is capitalized (e.g., HelloWorld), while camelCase keeps it lowercase (e.g., helloWorld).
It recognizes spaces, hyphens, underscores, and transitions between lowercase and uppercase characters as word boundaries.