Class WorkingDir
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
Switches the working directory of a process on startup to a location within an implementation. Useful for supporting legacy Windows applications which do not properly locate their installation directory.
[Serializable]
[Equatable]
public sealed class WorkingDir : FeedElement, IEquatable<XmlUnknown>, IEquatable<FeedElement>, ICloneable<WorkingDir>, IEquatable<WorkingDir>
- Inheritance
-
WorkingDir
- Implements
- Inherited Members
Properties
Source
The relative path of the directory in the implementation to set as the working directory. Defaults to use the root of the implementation if unset.
public string? Source { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this WorkingDir instance.
public WorkingDir Clone()
Returns
- WorkingDir
The new copy of the WorkingDir.
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.
ToString()
Returns the binding in the form "Source". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(WorkingDir?, WorkingDir?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(WorkingDir? left, WorkingDir? right)
Parameters
left
WorkingDirThe left object
right
WorkingDirThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(WorkingDir?, WorkingDir?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(WorkingDir? left, WorkingDir? right)
Parameters
left
WorkingDirThe left object
right
WorkingDirThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.