FilePath   Conversion (FilePath to String)

This is used to handle an implicit conversion from a FilePath object to a string

Definition

Namespace: Sandcastle.Core
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2025.9.30.0
public static implicit operator string (
	FilePath filePath
)

Parameters

filePath  FilePath
The FilePath to convert.

Return Value

String
The file path as a relative or absolute path string based on its current settings

Example

C#
FilePath filePath = new FilePath(@"%APPDATA%\TestApp\App.config");

// The FilePath object is automatically converted to a string
// representing the expanded, fully qualified path.
string pathString = filePath;

See Also