兼容较低的c#版本

This commit is contained in:
2025-10-13 19:53:20 +08:00
parent e3589cf1ec
commit 90ae999ba2
3 changed files with 9 additions and 1 deletions

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.meta

View File

@@ -362,7 +362,12 @@ namespace Convention.RScript
if (Variables.ContainsKey(varName)) if (Variables.ContainsKey(varName))
Variables.SetValue(varName, varValue); Variables.SetValue(varName, varValue);
} }
return Variables.ToDictionary(); Dictionary<string, RScriptVariableEntry> result = new();
foreach (var (key, value) in Variables)
{
result[key] = value;
}
return result;
} }
} }
} }