> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Struct RootedPathname

Namespace: [OpenTD.Utility](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Utility)\
Assembly: OpenTD.dll

An absolute pathname.

```csharp theme={null}
[MessagePackObject(true)]
public struct RootedPathname
```

## Inherited Members

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### RootedPathname(string)

Initializes a new instance of the [RootedPathname](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Utility.RootedPathname.md) struct,
starting with a relative or absolute pathname as input.

```csharp theme={null}
public RootedPathname(string pathname)
```

#### Parameters

`pathname` [string](https://learn.microsoft.com/dotnet/api/system.string)

A relative or absolute pathname.

## Methods

### GetFileName()

Returns the filename and extension of the path.

```csharp theme={null}
public string GetFileName()
```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ToLower()

```csharp theme={null}
public string ToLower()
```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ToString()

Returns the fully qualified type name of this instance.

```csharp theme={null}
public override string ToString()
```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The fully qualified type name.

## Operators

### implicit operator RootedPathname(string)

```csharp theme={null}
public static implicit operator RootedPathname(string x)
```

#### Parameters

`x` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[RootedPathname](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Utility.RootedPathname.md)

### implicit operator string(RootedPathname)

```csharp theme={null}
public static implicit operator string(RootedPathname x)
```

#### Parameters

`x` [RootedPathname](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Utility.RootedPathname.md)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)
