/// <summary> /// Initializes static members of the <see cref="WindowsNativeMethods"/> class. /// </summary> static WindowsNativeMethods() { Instance = new WindowsNativeMethods(); }
/// <summary> /// Initializes static members of the <see cref="WindowsNativeMethods"/> class. /// </summary> static WindowsNativeMethods() { Parallelism = (int)Math.Max(1, Environment.ProcessorCount * 0.8); Instance = new WindowsNativeMethods(); }