forked from nanoframework/Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
31 lines (25 loc) · 776 Bytes
/
Program.cs
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
using System;
using System.Diagnostics;
using System.Threading;
using NF.AwesomeLib;
namespace Test.Interop
{
public class Program
{
public static void Main()
{
// testing cpu serial number
string serialNumber = "";
foreach (byte b in Utilities.HardwareSerial)
{
serialNumber += b.ToString("X2");
}
Debug.WriteLine("cpu serial number: " + serialNumber);
// test complicated calculation
NF.AwesomeLib.Math math = new NF.AwesomeLib.Math();
double result = math.SuperComplicatedCalculation(11.12);
Debug.WriteLine("calculation result: " + result);
Thread.Sleep(Timeout.Infinite);
}
}
}