using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading;
public class MainClass
{
public static void Main()
{
Thread.SetData(Thread.AllocateNamedDataSlot("TestSlot"), 126);
int slotValue2 = (int)Thread.GetData(Thread.GetNamedDataSlot("TestSlot"));
Console.WriteLine(slotValue2);
}
}
|