Add PrettyFace
This commit is contained in:
@@ -6,34 +6,12 @@ using Convention.RScript.Variable.Attr;
|
||||
using Convention.RScript.Variable.CStyle;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
public class Program
|
||||
{
|
||||
[Description(@"
|
||||
测试注释1
|
||||
测试注释二
|
||||
")]
|
||||
[Default(@"
|
||||
this.Log(1);
|
||||
")]
|
||||
public class Test
|
||||
{
|
||||
[Method]
|
||||
public void Log(object o)
|
||||
{
|
||||
Console.WriteLine(o);
|
||||
}
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var engine = new RScriptEngine();
|
||||
var testClass = new CScriptRScriptVariableGenerater(typeof(Test), () => new Test(), null, nameof(Test));
|
||||
testClass.Register();
|
||||
engine.Run(@"
|
||||
var t = New(Test);
|
||||
t.Log(114514);
|
||||
");
|
||||
Console.WriteLine(testClass.scriptIndicator);
|
||||
Console.WriteLine(PlatformIndicator.PrettyFace);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user