Table of Contents

Method AddDirectorySeparatorChar

Namespace
Alternet.UI
Assembly
Alternet.UI.Interfaces.dll

AddDirectorySeparatorChar(string?)

Adds directory separator char to the path if it's needed. If path already has directory separator char at the end, no changes are performed.

public static string AddDirectorySeparatorChar(string? path)

Parameters

path string

Path to which directory separator char will be added.

Returns

string

string containing path with added directory separator char.

Exceptions

ArgumentNullException

Path is null.