public static int CoreCount { get; }Public Shared ReadOnly Property CoreCount As Integer
Getpublic:
static property int CoreCount {
int get ();
}static member CoreCount : int with getThen targeting .NET 6.0 or later this property returns the same value as the Environment.ProcessorCount property. On earlier .NET versions the Environment.ProcessorCount property may return an incorrect value on Windows, because it does not respect the configured processor affinity of the current process.