YAXLib.StringUtils.IsLocationAllGeneric C# (CSharp) Method

IsLocationAllGeneric() public static method

Determines whether the specified location is composed of levels which are themselves either "." or "..".
public static IsLocationAllGeneric ( string location ) : bool
location string The location string to check.
return bool
        public static bool IsLocationAllGeneric(string location)
        {
            var locSteps = location.SplitPathNamespaceSafe();

            foreach (var loc in locSteps)
            {
                if (!IsSingleLocationGeneric(loc))
                    return false;
            }

            return true;
        }