Skip to main content

OpenTD reference 2026 R1

Struct RootedPathname

Last update: 09.03.2026

Namespace: OpenTD.Utility
Assembly: OpenTD.dll

An absolute pathname.

[MessagePackObject(true)]
public struct RootedPathname

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

RootedPathname(string)

Initializes a new instance of the struct, starting with a relative or absolute pathname as input.

public RootedPathname(string pathname)

Parameters

pathname string

A relative or absolute pathname.

Methods

GetFileName()

Returns the filename and extension of the path.

public string GetFileName()

Returns

string

ToLower()

public string ToLower()

Returns

string

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

implicit operator RootedPathname(string)

public static implicit operator RootedPathname(string x)

Parameters

x string

Returns

RootedPathname

implicit operator string(RootedPathname)

public static implicit operator string(RootedPathname x)

Parameters

x RootedPathname

Returns

string

Connect with Ansys