Class ExecutableInPath
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
Make a chosen Implementation available as an executable in the search PATH.
[Serializable]
[Equatable]
public sealed class ExecutableInPath : ExecutableInBinding, IEquatable<XmlUnknown>, IEquatable<FeedElement>, ICloneable<Binding>, IEquatable<ExecutableInBinding>, IEquatable<ExecutableInPath>
- Inheritance
-
ExecutableInPath
- Implements
- Inherited Members
Properties
Name
The name of the executable (without file extensions).
public required string Name { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this ExecutableInPath instance.
public override Binding Clone()
Returns
- Binding
The new copy of the ExecutableInPath.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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
Operators
operator ==(ExecutableInPath?, ExecutableInPath?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(ExecutableInPath? left, ExecutableInPath? right)
Parameters
left
ExecutableInPathThe left object
right
ExecutableInPathThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(ExecutableInPath?, ExecutableInPath?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(ExecutableInPath? left, ExecutableInPath? right)
Parameters
left
ExecutableInPathThe left object
right
ExecutableInPathThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.