File Path Conversion (File Path 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: 2026.1.20.0
The file path as a relative or absolute path string based on its current settings
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static implicit operator string (
FilePath filePath
)VB
Public Shared Widening Operator CType (
filePath As FilePath
) As StringC++
static implicit operator String^ (
FilePath^ filePath
)F#
Parameters
Return Value
StringThe 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;VB
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 = filePathC++
No code example is currently available or this language may not be supported.F#
No code example is currently available or this language may not be supported.