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