Table of Contents

Struct BuildPath

Namespace
Ando.Context
Assembly
ando.dll

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

path string

Relative or absolute path.

Properties

Value

The absolute path value.

public string Value { get; }

Property Value

string

Methods

Exists()

public bool Exists()

Returns

bool

IsDirectory()

public bool IsDirectory()

Returns

bool

IsFile()

public bool IsFile()

Returns

bool

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

left BuildPath
right BuildPath

Returns

BuildPath

operator /(BuildPath, string)

public static BuildPath operator /(BuildPath left, string right)

Parameters

left BuildPath
right string

Returns

BuildPath

implicit operator string(BuildPath)

public static implicit operator string(BuildPath path)

Parameters

path BuildPath

Returns

string