Table of Contents

Class GenericBinding

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

Zero Install will not know how to run a program using generic bindings itself, but it will include them in any selections documents it creates, which can then be executed by your custom code.

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

Properties

Path

If your binding needs a path within the selected implementation, it is suggested that the path attribute be used for this. Other attributes and child elements should be namespaced to avoid collisions.

public string? Path { get; set; }

Property Value

string

Methods

Clone()

Creates a deep copy of this GenericBinding instance.

public override Binding Clone()

Returns

Binding

The new copy of the GenericBinding.

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.

ToString()

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

public override string ToString()

Returns

string

Operators

operator ==(GenericBinding?, GenericBinding?)

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

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

Parameters

left GenericBinding

The left object

right GenericBinding

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(GenericBinding?, GenericBinding?)

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

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

Parameters

left GenericBinding

The left object

right GenericBinding

The right object

Returns

bool

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