mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
Demonstration of boxing(?) issue
This commit is contained in:
parent
1d71c37443
commit
da5960eaa8
1 changed files with 6 additions and 7 deletions
|
|
@ -32,13 +32,12 @@ namespace MatthijsTest
|
|||
{
|
||||
Console.Clear();
|
||||
Console.WriteLine("Kernel started!");
|
||||
ITest xTest = new TestImpl();
|
||||
xTest.DoMessage();
|
||||
//var xTest = new List<string>() { "String1", "String2", "String3", "String4" };
|
||||
//foreach (string xItem in xTest.ToArray()) { Console.WriteLine(xItem); }
|
||||
//Console.WriteLine();
|
||||
//Console.Write("Number: ");
|
||||
//Console.WriteLine(GetValue().ToString());
|
||||
int xTest = 987;
|
||||
IntPtr xPtr = (IntPtr)xTest;
|
||||
xTest = (int)xPtr;
|
||||
Console.Write("Value: ");
|
||||
Console.Write(xTest.ToString());
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue