条件编译符整理,为net6做准备
using System; using System.Runtime.InteropServices; #if NET40 namespace System.Runtime.CompilerServices { [StructLayout(LayoutKind.Sequential, Size = 1)] internal struct VoidTaskResult { } } #endif