From 22dc1e040d20a1f9d6d191f60c3d480f8b3434fc Mon Sep 17 00:00:00 2001 From: Louis Zanella Date: Mon, 16 Dec 2024 11:32:21 -0500 Subject: [PATCH] Delete script --- ReplacePublicFieldsByProperties.ps1 | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 ReplacePublicFieldsByProperties.ps1 diff --git a/ReplacePublicFieldsByProperties.ps1 b/ReplacePublicFieldsByProperties.ps1 deleted file mode 100644 index 5dfcc91a..00000000 --- a/ReplacePublicFieldsByProperties.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -$rootPath = [IO.Path]::Combine($PSScriptRoot, "NGitLab", "Models") - -$filesToModify = Get-ChildItem -Path $rootPath - -foreach ($file in $filesToModify) -{ - $filePath = Join-Path $rootPath $file - $content = Get-Content $filePath - $content ` - -replace '(public\s+(\w+(<\w+>)?(\[\])?\??)\s+\w+\s*);', '$1 { get; set; }' ` - -replace '(public\s+(\w+(<\w+>)?(\[\])?\??)\s+\w+\s*)=', '$1{ get; set; } =' ` - | Out-File -Encoding utf8 $filePath -} \ No newline at end of file