Pomona.ExpandPathsUtils.GetExpandedPaths C# (CSharp) Method

GetExpandedPaths() public static method

public static GetExpandedPaths ( string expandedPaths ) : HashSet
expandedPaths string
return HashSet
        public static HashSet<string> GetExpandedPaths(string expandedPaths)
        {
            return new HashSet<string>((expandedPaths ?? string.Empty).ToLower().Split(',').SelectMany(GetAllSubPaths).Distinct());
        }

Usage Example

Exemplo n.º 1
0
 public ServerSerializationContext(
     ITypeResolver typeMapper,
     string expandedPaths,
     bool debugMode,
     IUriResolver uriResolver,
     IContainer container
     )
 {
     if (typeMapper == null)
     {
         throw new ArgumentNullException(nameof(typeMapper));
     }
     if (expandedPaths == null)
     {
         throw new ArgumentNullException(nameof(expandedPaths));
     }
     if (uriResolver == null)
     {
         throw new ArgumentNullException(nameof(uriResolver));
     }
     if (container == null)
     {
         throw new ArgumentNullException(nameof(container));
     }
     TypeMapper       = typeMapper;
     DebugMode        = debugMode;
     this.uriResolver = uriResolver;
     this.container   = container;
     ExpandedPaths    = ExpandPathsUtils.GetExpandedPaths(expandedPaths);
 }