Struct Architecture
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
Describes a combination of an operating system and a CPU architecture.
[TypeConverter(typeof(ArchitectureConverter))]
[Serializable]
public record struct Architecture : IEquatable<Architecture>
- Implements
- Inherited Members
- Extension Methods
Constructors
Architecture(string)
Creates a new architecture structure from a string in the form "os-cpu".
public Architecture(string architecture)
Parameters
architecture
string
Exceptions
- FormatException
architecture
is not in the form "os-cpu"
Architecture(OS, Cpu)
Describes a combination of an operating system and a CPU architecture.
public Architecture(OS OS = OS.All, Cpu Cpu = Cpu.All)
Parameters
OS
OSDetermines which operating systems are supported.
Cpu
CpuDetermines which CPU-architectures are supported.
Fields
CurrentSystem
An architecture representing the currently running system.
public static readonly Architecture CurrentSystem
Field Value
Properties
Cpu
Determines which CPU-architectures are supported.
public Cpu Cpu { readonly get; set; }
Property Value
OS
Determines which operating systems are supported.
public OS OS { readonly get; set; }
Property Value
Methods
ToString()
Returns the architecture in the form "os-cpu". Safe for parsing!
public override string ToString()