Struct BuildPath
Immutable value type for type-safe path manipulation in build scripts. Provides operator overloading for intuitive path construction.
public readonly struct BuildPath
- Inherited Members
Constructors
BuildPath(string)
Creates a BuildPath from a path string, normalizing to absolute form.
public BuildPath(string path)
Parameters
pathstringRelative or absolute path.
Properties
Value
The absolute path value.
public string Value { get; }
Property Value
Methods
Exists()
public bool Exists()
Returns
IsDirectory()
public bool IsDirectory()
Returns
IsFile()
public bool IsFile()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator /(BuildPath, BuildPath)
public static BuildPath operator /(BuildPath left, BuildPath right)
Parameters
Returns
operator /(BuildPath, string)
public static BuildPath operator /(BuildPath left, string right)
Parameters
Returns
implicit operator string(BuildPath)
public static implicit operator string(BuildPath path)
Parameters
pathBuildPath