Table of Contents

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

string

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 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 "Source". Not safe for parsing!

public override string ToString()

Returns

string

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 WorkingDir

The left object

right WorkingDir

The 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 WorkingDir

The left object

right WorkingDir

The right object

Returns

bool

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

See Also