public static bool IsLocationAllGeneric(string location) { var locSteps = location.SplitPathNamespaceSafe(); foreach (var loc in locSteps) { if (!IsSingleLocationGeneric(loc)) return false; } return true; }