示例#1
0
        static void DemoClassMarshalling()
        {
            var time = new SystemTimeClass();    // Had the time been a struct, the system time would not have been reflected by it because it's passed by value.

            GetSystemTime(time);
            Console.WriteLine($"The time is {time}");
        }
示例#2
0
 static extern void GetSystemTime(SystemTimeClass time);