Skip to main content

OpenTD .NET8 reference 2025 R2

OpenTD.Utility.RootedPathname Struct Reference

Last update: 16.07.2025

An absolute pathname. More...

Public Member Functions

 RootedPathname (string pathname)
 Initializes a new instance of the RootedPathname struct, starting with a relative or absolute pathname as input.
 
string ToLower ()
 
string GetFileName ()
 Returns the filename and extension of the path.
 
override string ToString ()
 

Static Public Member Functions

static implicit operator RootedPathname (string x)
 
static implicit operator string (RootedPathname x)
 

Detailed Description

An absolute pathname.

Constructor & Destructor Documentation

◆ RootedPathname()

OpenTD.Utility.RootedPathname.RootedPathname ( string pathname)
inline

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

Parameters
pathnameA relative or absolute pathname.

Member Function Documentation

◆ GetFileName()

string OpenTD.Utility.RootedPathname.GetFileName ( )
inline

Returns the filename and extension of the path.

Returns

◆ operator RootedPathname()

static implicit OpenTD.Utility.RootedPathname.operator RootedPathname ( string x)
inlinestatic

◆ operator string()

static implicit OpenTD.Utility.RootedPathname.operator string ( RootedPathname x)
inlinestatic

◆ ToLower()

string OpenTD.Utility.RootedPathname.ToLower ( )
inline

◆ ToString()

override string OpenTD.Utility.RootedPathname.ToString ( )
inline

The documentation for this struct was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/Utility/RootedPathname.cs

Connect with Ansys