Method AddDirectorySeparatorChar
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
stringPath to which directory separator char will be added.
Returns
Exceptions
- ArgumentNullException
Path is null.