Skip to content

Commit

Permalink
fix dot to slash replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
shemogumbe committed Mar 19, 2024
1 parent dc939fd commit 2c3f0c7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ private static HashSet<string> GetImportStatements(SnippetModel snippetModel)
case ImportKind.RequestBuilder:
if (!string.IsNullOrEmpty(import.ModelProperty.Name))
{
var textInfo = System.Globalization.CultureInfo.CurrentCulture.TextInfo;
var namespaceParts = import.ModelProperty.NamespaceName.Split('.').Select(part => textInfo.ToTitleCase(part.ToLower()));
var importString = $"{requestBuilderImportPrefix}{string.Join("\\", namespaceParts)}\\{textInfo.ToTitleCase(import.ModelProperty.Name.ToLower())};";
var namespaceParts = import.ModelProperty.NamespaceName.Split('.')
.Select(s => s.ToFirstCharacterUpperCase()).ToArray();
var importString = $"{requestBuilderImportPrefix}{string.Join("\\", namespaceParts)}\\{import.ModelProperty.Name};";
snippetImports.Add(importString.Replace("\\Me\\", "\\Users\\Item\\"));
}
break;
Expand Down

0 comments on commit 2c3f0c7

Please sign in to comment.