EP RScript/优化跳转
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>Convention</RootNamespace>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
Submodule Convention/[RScript] updated: dde9e6b82d...7b48066aaf
@@ -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<RScriptContext.SerializableClass>("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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user