C# Class Smooth.Platform.PlatformExtensions

Extension methods related to the runtime / base platform.
显示文件 Open project: GuuD/smooth.foundations

Public Methods

Method Description
HasJit ( this runtimePlatform ) : bool

Returns true if the specified platform supports JIT compilation; otherwise, false.

NoJit ( this runtimePlatform ) : bool

Returns true if the specified platform does not support JIT compilation; otherwise, false.

ToBasePlatform ( this runtimePlatform ) : BasePlatform

Returns the base platform for the specified runtime platform.

Method Details

HasJit() public static method

Returns true if the specified platform supports JIT compilation; otherwise, false.
public static HasJit ( this runtimePlatform ) : bool
runtimePlatform this
return bool

NoJit() public static method

Returns true if the specified platform does not support JIT compilation; otherwise, false.
public static NoJit ( this runtimePlatform ) : bool
runtimePlatform this
return bool

ToBasePlatform() public static method

Returns the base platform for the specified runtime platform.
public static ToBasePlatform ( this runtimePlatform ) : BasePlatform
runtimePlatform this
return BasePlatform