Class NamedPath
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
NamedPathThe 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
stringThe 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
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
Path
Gets or sets the file system path.
public string Path { get; set; }
Property Value
Methods
Equals(NamedPath)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(NamedPath other)
Parameters
other
NamedPathAn object to compare with this object.
Returns
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 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
Returns
operator !=(NamedPath, NamedPath)
public static bool operator !=(NamedPath left, NamedPath right)