From 90ae999ba24d6e65738ce023238e561ce1497510 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Mon, 13 Oct 2025 19:53:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E8=BE=83=E4=BD=8E=E7=9A=84c#?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 2 ++ .gitignore | 1 + RScriptContext.cs | 7 ++++++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f867683 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.meta \ No newline at end of file diff --git a/RScriptContext.cs b/RScriptContext.cs index f122ffa..39ea410 100644 --- a/RScriptContext.cs +++ b/RScriptContext.cs @@ -362,7 +362,12 @@ namespace Convention.RScript if (Variables.ContainsKey(varName)) Variables.SetValue(varName, varValue); } - return Variables.ToDictionary(); + Dictionary result = new(); + foreach (var (key, value) in Variables) + { + result[key] = value; + } + return result; } } }