Skip to content

createCSharpNamePolicy

Creates the C# naming policy with case conversion and keyword escaping.

After applying the appropriate case conversion for each element kind, the resulting name is checked against C# reserved and contextual keywords. If it matches (case-sensitively), the name is prefixed with @.

import { createCSharpNamePolicy } from "@alloy-js/csharp";
function createCSharpNamePolicy(): core.NamePolicy<CSharpElements>;

NamePolicy<CSharpElements>