17 references to Helpers
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (17)
DefaultHelpers.cs (2)
33
return
Helpers
.PascalCase(value.AsSpan());
39
return
Helpers
.CamelCase(value.AsSpan());
HelperFactory.cs (2)
114
var name =
Helpers
.CamelCase(method.Name.AsSpan());
121
var name =
Helpers
.CamelCase(method.Name.AsSpan());
Languages\angular\Angular.cs (4)
28
var name =
Helpers
.PascalCase(typeModelRef.Model.Name.AsSpan());
119
var name =
Helpers
.PascalCase(typeModelRef.Model.Name.AsSpan());
208
var name =
Helpers
.PascalCase(typeModelRef.Model.Name.AsSpan());
367
context.WriteTemplate(
Helpers
.CamelCase(context.Options.ClientName.AsSpan()), context.Templates["ServiceClient"], model);
Languages\csharp\CSharp.cs (4)
22
string ns = string.Join(".", parts.Select(p =>
Helpers
.PascalCase(p.AsSpan())));
83
return "Models." +
Helpers
.PascalCase(typeModelRef.Model.Name.AsSpan());
214
return $"RequestMethod.{
Helpers
.PascalCase(method.Method.ToLower().AsSpan())}";
233
context.WriteTemplate($"Models/{
Helpers
.PascalCase(type.Name.AsSpan())}", context.Templates["Model"], type);
Modeler\ServiceClientModelFactory.cs (5)
318
$"{
Helpers
.PascalCase(CurrentTypeName.AsSpan())}{
Helpers
.PascalCase(CurrentPropertyName.AsSpan())}";
323
$"{
Helpers
.PascalCase(CurrentMethodName.AsSpan())}{
Helpers
.PascalCase(CurrentParameterName.AsSpan())}";
403
id =
Helpers
.PascalCase((CurrentTypeName + "-" + CurrentPropertyName).AsSpan());