Table of Contents

FilePath.implicit operator Operator

Definition

Namespace
Sandcastle.Core
Assembly
Sandcastle.Core.dll

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

public static implicit operator string(FilePath filePath)

Parameters

filePath FilePath

The FilePath to convert.

Returns

string

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

Examples

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;
Dim filePath As New FilePath("%APPDATA%\TestApp\App.config")

' The FilePath object is automatically converted to a string
' representing the expanded, fully qualified path.
Dim pathString As String = filePath