MCPcopy Create free account
hub / github.com/apache/fory / csharp_safe_identifier

Function csharp_safe_identifier

compiler/fory_compiler/generators/csharp.py:124–127  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

122
123
124def csharp_safe_identifier(name: str) -> str:
125 if name in _CSHARP_KEYWORDS:
126 return f"@{name}"
127 return name
128
129
130def csharp_namespace_for_schema(schema: Schema) -> str:

Callers 2

csharp_top_level_symbolsFunction · 0.85
safe_identifierMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected