Table of Contents

Class ExecutableInVar

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

Make a chosen Implementation available as an executable path in an environment variable.

[Serializable]
[Equatable]
public sealed class ExecutableInVar : ExecutableInBinding, IEquatable<XmlUnknown>, IEquatable<FeedElement>, ICloneable<Binding>, IEquatable<ExecutableInBinding>, IEquatable<ExecutableInVar>
Inheritance
ExecutableInVar
Implements
Inherited Members

Properties

Name

The name of the environment variable.

public required string Name { get; set; }

Property Value

string

Methods

Clone()

Creates a deep copy of this ExecutableInVar instance.

public override Binding Clone()

Returns

Binding

The new copy of the ExecutableInVar.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Normalize()

Converts legacy elements, sets default values, etc..

public override void Normalize()

Exceptions

InvalidDataException

A required property is not set or invalid.

ToString()

Returns the binding in the form "Name = Command". Not safe for parsing!

public override string ToString()

Returns

string

Operators

operator ==(ExecutableInVar?, ExecutableInVar?)

Indicates whether the object on the left is equal to the object on the right.

public static bool operator ==(ExecutableInVar? left, ExecutableInVar? right)

Parameters

left ExecutableInVar

The left object

right ExecutableInVar

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(ExecutableInVar?, ExecutableInVar?)

Indicates whether the object on the left is not equal to the object on the right.

public static bool operator !=(ExecutableInVar? left, ExecutableInVar? right)

Parameters

left ExecutableInVar

The left object

right ExecutableInVar

The right object

Returns

bool

true if the objects are not equal; otherwise, false.