我有一个基本配置文件,例如.
appsettings.json
{
"Values": {
"Test": ["one", "two"]
}
}
Run Code Online (Sandbox Code Playgroud)
和
appsettings.dev.json
{
"Values": {
"Test": ["three"]
}
}
Run Code Online (Sandbox Code Playgroud)
在转换之后,数组将是
["three", "two"]
Run Code Online (Sandbox Code Playgroud)
如何确保转换后的数组缩小到较少数量的元素,而不是每个元素单独更改?