Skip to main content

to_csharp_name

Function to_csharp_name 

Source
pub fn to_csharp_name(name: &str) -> String
Expand description

Convert a Rust snake_case name to C# PascalCase convention with initialism uppercasing.

Converts snake_case to PascalCase via heck and then restores known initialisms so that e.g. graphql_route_configGraphQLRouteConfig (not GraphqlRouteConfig) and http_statusHTTPStatus (not HttpStatus).