Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: string FilenameCharactersEscape(this string, bool)

Declaration

public static string FilenameCharactersEscape(
    this string input,
    bool includeNonAscii = false
)

Summary

Escapes all characters in this string which cannot form part of a valid filename on at least one supported filesystem. The escaping is fully reversible (via StringExtensions.FilenameCharactersUnescape(this string)), but does not treat characters at specific positions differently (e.g. the "." at the end of the name is not escaped, even though it will disappear on a Win32 system).