Last active
February 15, 2024 07:58
-
-
Save nickpreston24/dbea7a7ce1db58099e70b2cf4174dcd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#find | |
"(\w+)":\s*(.*), | |
#replace with | |
public string $1 {get;set;} = "$2"; | |
# then fix 2x double quotes | |
#find | |
"" | |
#replace with | |
" | |
# Blank the strings if you want: | |
# find | |
".*" | |
#replace with: | |
string.Empty | |
# All values should now be public C# strings with setter/getters and the inital values pasted are retained. | |
# From here, you may convert to whatever types you like. | |
# This script is only for expedience |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment