isCSharpKeyword
Returns true if the given name is a C# reserved keyword. The check is case-sensitive, matching C# language semantics.
Note: this only checks reserved keywords, not contextual keywords.
Contextual keywords are only reserved in specific language contexts
and are valid identifiers elsewhere (e.g., value is valid as a parameter name).
Use isCSharpContextualKeyword to check contextual keywords separately.
import { isCSharpKeyword } from "@alloy-js/csharp";
function isCSharpKeyword(name: string): boolean;Parameters
Section titled “Parameters”| name | string |
Returns
Section titled “Returns”boolean