MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / to_csharp_ident

Method to_csharp_ident

crates/csharp/src/csharp_ident.rs:94–101  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

92 }
93
94 fn to_csharp_ident(&self) -> String {
95 // Escape C# keywords
96 if Self::csharp_keywords().contains(&self) {
97 format!("@{self}")
98 } else {
99 self.to_lower_camel_case()
100 }
101 }
102
103 fn to_csharp_ident_upper(&self) -> String {
104 // Escape C# keywords

Callers 5

gen_import_srcMethod · 0.80
exportMethod · 0.80
sig_stringMethod · 0.80
type_recordMethod · 0.80
type_variantMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected