public void Set_CPU_Infos() { ManagementObjectSearcher CPU_Info = Infos.CPU_Infos(); foreach (ManagementObject Info in CPU_Info.Get()) { CPU_LBL.Text = $"CPU : {Info["Name"]} \n\n" + $"Cores : {Info["NumberOfCores"]} \n\n" + $"Enabled Cores : {Info["NumberOfEnabledCore"]}"; } }