Show / Hide Table of Contents

Class ArchitectureExtensions

Contains extension methods for Architecture, OS and Cpu.

Inheritance
Object
ArchitectureExtensions
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public static class ArchitectureExtensions : Object

Methods

Is32Bit(Cpu)

Indicates whether the CPU architecture is 32-bit.

Declaration
public static bool Is32Bit(this Cpu cpu)
Parameters
Type Name Description
Cpu cpu
Returns
Type Description
Boolean

Is64Bit(Cpu)

Indicates whether the CPU architecture is 64-bit.

Declaration
public static bool Is64Bit(this Cpu cpu)
Parameters
Type Name Description
Cpu cpu
Returns
Type Description
Boolean

RunsOn(Architecture, Architecture)

Determines whether an implementation for architecture can run on target.

Declaration
public static bool RunsOn(this Architecture architecture, Architecture target)
Parameters
Type Name Description
Architecture architecture
Architecture target
Returns
Type Description
Boolean

RunsOn(Cpu, Cpu)

Determines whether an implementation for cpu can run on target.

Declaration
public static bool RunsOn(this Cpu cpu, Cpu target)
Parameters
Type Name Description
Cpu cpu
Cpu target
Returns
Type Description
Boolean

RunsOn(OS, OS)

Determines whether an implementation for os can run on target.

Declaration
public static bool RunsOn(this OS os, OS target)
Parameters
Type Name Description
OS os
OS target
Returns
Type Description
Boolean
In This Article
Back to top Copyright Bastian Eicher et al