Zero Install .NET API 2.20.0
ZeroInstall.Model.Architecture Struct Reference

Describes a combination of an operating system and a CPU architecture. More...

Inheritance diagram for ZeroInstall.Model.Architecture:

Public Member Functions

 Architecture (OS os, Cpu cpu)
 Creates a new architecture structure with pre-set values. More...
 
 Architecture (string architecture)
 Creates a new architecture structure from a string in the form "os-cpu". More...
 
override string ToString ()
 Returns the architecture in the form "os-cpu". Safe for parsing!
 
bool Equals (Architecture other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator== (Architecture left, Architecture right)
 
static bool operator!= (Architecture left, Architecture right)
 

Static Public Attributes

static readonly Architecture CurrentSystem = new(CurrentOS, CurrentCpu)
 An architecture representing the currently running system.
 

Properties

OS OS [getset]
 Determines which operating systems are supported.
 
Cpu Cpu [getset]
 Determines which CPU-architectures are supported.
 

Detailed Description

Describes a combination of an operating system and a CPU architecture.

Constructor & Destructor Documentation

◆ Architecture() [1/2]

ZeroInstall.Model.Architecture.Architecture ( OS  os,
Cpu  cpu 
)
inline

Creates a new architecture structure with pre-set values.

Parameters
osDetermines which operating systems are supported.
cpuDetermines which CPU-architectures are supported.

◆ Architecture() [2/2]

ZeroInstall.Model.Architecture.Architecture ( string  architecture)
inline

Creates a new architecture structure from a string in the form "os-cpu".

Exceptions
FormatExceptionarchitecture is not in the form "os-cpu"

The documentation for this struct was generated from the following file: