EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Method AddExtensionPrefix

    AddExtensionPrefix(string, string)

    Adds a specified prefix to the extension of a file path.

    Declaration
    public static string AddExtensionPrefix(string path, string prefix)
    Parameters
    Type Name Description
    string path

    The original file path.

    string prefix

    The prefix to append to the file extension.

    Returns
    Type Description
    string

    The file path with the prefix appended to the file extension. If the directory of the path could not be determined, an empty string is used.

    Examples
    AddExtensionPrefix("C:\\temp\\file.txt", "bak"); // Returns "C:\\temp\\file.bak.txt"
    © Xab3r. All rights reserved.