EP RScript/优化跳转
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<RootNamespace>Convention</RootNamespace>
|
<RootNamespace>Convention</RootNamespace>
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
Submodule Convention/[RScript] updated: dde9e6b82d...7b48066aaf
@@ -25,7 +25,7 @@ public class Program
|
|||||||
typeof(Test)
|
typeof(Test)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
var result = engine.Compile(@"
|
var result = engine.Compile(@"
|
||||||
int i= 2;
|
int i= 2;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
@@ -49,8 +49,10 @@ namespace(func1)
|
|||||||
|
|
||||||
label(end);
|
label(end);
|
||||||
", import);
|
", import);
|
||||||
*/
|
var data = RScriptSerializer.SerializeClass(result);
|
||||||
//EasySave.Save("data", result, "F:\\test.json");
|
var file = new ToolFile("F:\\test.dat");
|
||||||
var result = engine.Run(EasySave.Load<RScriptContext.SerializableClass>("data", "F:\\test.json"), import);
|
file.SaveAsBinary(data);
|
||||||
|
data = file.LoadAsBinary();
|
||||||
|
engine.Run(RScriptSerializer.DeserializeClass(data), import);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user