private bool IsUserNamespace(string fullName) { // if no user namespaces were set, return any non-system namespace as true if (UserNamespaces == null || _userNamespaces.Count == 0) { return(!_defaultNonUserNamespaces.Any(fullName.StartsWith)); } return(UserNamespaces.Any(fullName.StartsWith)); }
private bool IsUserNamespace(string ns) { if (String.IsNullOrEmpty(ns)) { return(false); } // if no user namespaces were set, return any non-system namespace as true if (UserNamespaces == null || _userNamespaces.Count == 0) { return(!_defaultNonUserNamespaces.Any(ns.StartsWith)); } return(UserNamespaces.Any(ns.StartsWith)); }