Catel.IO.Path.RemoveStartAndTrailingSlashes C# (CSharp) Method

RemoveStartAndTrailingSlashes() static private method

Removes any slashes (\ or /) at the beginning and end of the string.
The is null or whitespace.
static private RemoveStartAndTrailingSlashes ( string value ) : string
value string Value to remove the slashes from.
return string
        internal static string RemoveStartAndTrailingSlashes(string value)
        {
            Argument.IsNotNullOrWhitespace("value", value);

            value = RemoveStartSlashes(value);
            value = RemoveTrailingSlashes(value);

            return value;
        }
    }