-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCScriptingDemo.cs
More file actions
52 lines (45 loc) · 1.16 KB
/
Copy pathCScriptingDemo.cs
File metadata and controls
52 lines (45 loc) · 1.16 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace CScriptingDemo
{
using static CScripting;
public class Demo
{
public static void Main(string[] args)
{
var eargs = Environment.GetCommandLineArgs();
print(eargs);
print("hello world");
print("hello world", "\t");// \t no use
int[] a = { 1, 2, 3, 4, 5, 6, 7 };
print(a);
print(a, sep: "\t"); // \t ok
List<int> b = new()
{
1,
2
};
print(b);
print(b, sep: "\t");
Dictionary<string, int> d = new()
{
{ "a", 1 },
{ "b", 2 }
};
print(d);
print(d, sep: "\t");
Dictionary<int, object> d2 = new()
{
{ 1, "a" },
{ 2, "b" }
};
print(d2);
print(d2, sep: "\t");
help();
help(d2);
help(a);
help(typeof(Math));
help(typeof(CScripting));
help(typeof(matlab));
help(typeof(CScripting.matlab));
}
}
}