Skip to content

Commit 70d1413

Browse files
Rename
1 parent 78b7045 commit 70d1413

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CodeConverter/CSharp/ProjectMergedDeclarationExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static async Task<Project> WithRenamedMergedMyNamespaceAsync(this Project
7676
private static Project WithRenamespacedDocument(string baseName, Project vbProject, string sourceText, string myProjectDirPath)
7777
{
7878
if (string.IsNullOrWhiteSpace(sourceText)) return vbProject;
79-
return vbProject.AddDocument(baseName, sourceText.Renamespace(), filePath: Path.Combine(myProjectDirPath, baseName + ".Designer.vb")).Project;
79+
return vbProject.AddDocument(baseName, sourceText.ReNamespace(), filePath: Path.Combine(myProjectDirPath, baseName + ".Designer.vb")).Project;
8080
}
8181

8282
private static async IAsyncEnumerable<string> GetAllEmbeddedSourceText(Compilation compilation)
@@ -140,7 +140,7 @@ End Property
140140
End Class";
141141
}
142142

143-
private static string Renamespace(this string sourceText)
143+
private static string ReNamespace(this string sourceText)
144144
{
145145
return sourceText
146146
.Replace("Namespace Global.Microsoft.VisualBasic", $"Namespace Global.Microsoft.{Constants.MergedMsVbNamespace}")

0 commit comments

Comments
 (0)