コード例 #1
0
 public InstanceTest()
 {
     testMDArray[0] = new[] { 1, 2, 3 };
     testMDArray[1] = new[] { 4, 5, 6, 7 };
     testFuncPtr    = SleepOne;
     testPtr        = this;
 }
コード例 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Pid of this process: {0}", Process.GetCurrentProcess().Id);

            Console.WriteLine("Press any key...");

            var instance = new InstanceTest();

            while (!Console.KeyAvailable)
            {
                instance.SleepOne(3);
                long installedMemory;
                InstanceTest.GetPhysicallyInstalledSystemMemory(out installedMemory);
            }
        }