diff --git a/Convention-CSharp.csproj b/Convention-CSharp.csproj index 1bb1198..2542c05 100644 --- a/Convention-CSharp.csproj +++ b/Convention-CSharp.csproj @@ -5,6 +5,7 @@ Exe net8.0 Convention + true diff --git a/Convention/[RScript] b/Convention/[RScript] index dde9e6b..7b48066 160000 --- a/Convention/[RScript] +++ b/Convention/[RScript] @@ -1 +1 @@ -Subproject commit dde9e6b82da6479ba928c5ecf0ac3c6cacf8ee71 +Subproject commit 7b48066aafbbb9479715961873fe2938b225daec diff --git a/[Test]/Program.cs b/[Test]/Program.cs index 164b851..a051f0a 100644 --- a/[Test]/Program.cs +++ b/[Test]/Program.cs @@ -25,7 +25,7 @@ public class Program typeof(Test) }; - /* + var result = engine.Compile(@" int i= 2; int count = 0; @@ -49,8 +49,10 @@ namespace(func1) label(end); ", import); - */ - //EasySave.Save("data", result, "F:\\test.json"); - var result = engine.Run(EasySave.Load("data", "F:\\test.json"), import); + var data = RScriptSerializer.SerializeClass(result); + var file = new ToolFile("F:\\test.dat"); + file.SaveAsBinary(data); + data = file.LoadAsBinary(); + engine.Run(RScriptSerializer.DeserializeClass(data), import); } } \ No newline at end of file