Table of Contents

Class NamedPath

Namespace
Hi.Common.PathUtils
Assembly
HiGeom.dll

Represents a file system path with an associated name or alias.

public class NamedPath : IEquatable<NamedPath>
Inheritance
NamedPath
Implements
Inherited Members
Extension Methods

Constructors

NamedPath()

Initializes a new instance of the NamedPath class.

public NamedPath()

NamedPath(NamedPath)

Copy constructor that creates a new instance with the same name and path as the source.

public NamedPath(NamedPath src)

Parameters

src NamedPath

The source NamedPath to copy from

NamedPath(string)

Initializes a new instance of the NamedPath class with the specified name.

public NamedPath(string name)

Parameters

name string

The name or alias for the path

NamedPath(string, string)

Initializes a new instance of the NamedPath class with the specified name and path.

public NamedPath(string name, string path)

Parameters

name string

The name or alias for the path

path string

The file system path

Properties

Name

Gets or sets the alias or display name for the path. A null value is acceptable.

public string Name { get; set; }

Property Value

string

Path

Gets or sets the file system path.

public string Path { get; set; }

Property Value

string

Methods

Equals(NamedPath)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(NamedPath other)

Parameters

other NamedPath

An object to compare with this object.

Returns

bool

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

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 a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

operator ==(NamedPath, NamedPath)

public static bool operator ==(NamedPath left, NamedPath right)

Parameters

left NamedPath
right NamedPath

Returns

bool

operator !=(NamedPath, NamedPath)

public static bool operator !=(NamedPath left, NamedPath right)

Parameters

left NamedPath
right NamedPath

Returns

bool