Axiom.Core.PlatformInformation.PlatformInformation C# (CSharp) Метод

PlatformInformation() статический приватный Метод

Empty static constructor DO NOT DELETE. It needs to be here because: # The presence of a static constructor suppresses beforeFieldInit. # Static field variables are initialized before the static constructor is called. # Having a static constructor is the only way to ensure that all resources are initialized before other static functions are called. (from "Static Constructors Demystified" by Satya Komatineni http://www.ondotnet.com/pub/a/dotnet/2003/07/07/staticxtor.html)
static private PlatformInformation ( ) : System
Результат System
		static PlatformInformation()
		{
#if MONO_SIMD
			if ( ( SimdRuntime.AccelMode & AccelMode.SSSE3 ) == AccelMode.SSSE3 )
			{
				cpuFeatures[ (int)CPUFeature.SSSE3 ] = true;
			}
			if ( ( SimdRuntime.AccelMode & AccelMode.SSE4A ) == AccelMode.SSE4A )
			{
				cpuFeatures[ (int)CPUFeature.SSE4A ] = true;
			}
			if ( ( SimdRuntime.AccelMode & AccelMode.SSE42 ) == AccelMode.SSE42 )
			{
				cpuFeatures[ (int)CPUFeature.SSE42 ] = true;
			}
			if ( ( SimdRuntime.AccelMode & AccelMode.SSE41 ) == AccelMode.SSE41 )
			{
				cpuFeatures[ (int)CPUFeature.SSE41 ] = true;
			}
			if ( ( SimdRuntime.AccelMode & AccelMode.SSE3 ) == AccelMode.SSE3 )
			{
				cpuFeatures[ (int)CPUFeature.SSE3 ] = true;
			}
			if ( ( SimdRuntime.AccelMode & AccelMode.SSE2 ) == AccelMode.SSE2 )
			{
				cpuFeatures[ (int)CPUFeature.SSE2 ] = true;
			}
			if ( ( SimdRuntime.AccelMode & AccelMode.SSE1 ) == AccelMode.SSE1 )
			{
				cpuFeatures[ (int)CPUFeature.SSE1 ] = true;
			}
#endif

#if SYSTEM_MANAGEMENT
			ManagementObjectSearcher searcher = new ManagementObjectSearcher( "select * from Win32_Processor" );
			foreach ( var item in searcher.Get() )
			{
				cpuIdentifier = item.Properties[ "Name" ].Value.ToString();
			}
#endif
		}