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