Catel.IO.Path.RemoveStartSlashes C# (CSharp) Метод

RemoveStartSlashes() статический приватный Метод

Removes any slashes (\ or /) at the beginning of the string.
The is null or whitespace.
static private RemoveStartSlashes ( string value ) : string
value string Value to remove the slashes from.
Результат string
        internal static string RemoveStartSlashes(string value)
        {
            Argument.IsNotNullOrWhitespace("value", value);

            while ((value.Length > 0) && ((value[0] == '\\') || (value[0] == '/')))
            {
                value = value.Remove(0, 1);
            }

            return value;
        }