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; } } }