8000 add notebook demo · heartacker/CScripting@ce3426c · GitHub
[go: up one dir, main page]

Skip to content

Commit ce3426c

Browse files
committed
add notebook demo
1 parent 5ba443e commit ce3426c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

S.System.Demo.dib

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!meta
2+
3+
{"kernelInfo":{"defaultKernelName":"csharp","items":[{"aliases":[],"languageName":"csharp","name":"csharp"}]}}
4+
5+
#!csharp
6+
7+
#r "nuget: S.System, *"
8+
using static S.System;
9+
10+
#!csharp
11+
12+
var abc = 10;
13+
var efg = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
14+
print(abc);
15+
print(efg);
16+
17+
#!csharp
18+
19+
var addr = 0x12345678;
20+
var addrstr = hex(addr);
21+
print(addrstr);
22+
print(hex(addr));
23+
24+
#!csharp
25+
26+
var value = 0xa55a55aa;
27+
28+
var valuebin = bin(value);
29+
print(valuebin);
30+
print(bin(value));

0 commit comments

Comments
 (0)
0