blob: aab22912d6909bd004926573f44d3282845166c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;
using Tango.Scripting.Core;
namespace Tango.Scripting.Basic
{
public class Script : ExtendedObject, IScriptSource
{
public String Name { get; set; }
public String Code { get; set; }
public bool IsEntryPoint { get; set; }
public static Script New(String file)
{
return new Script()
{
Name = Path.GetFileName(file),
Code = System.IO.File.ReadAllText(file),
};
}
}
}
|