private static bool? ParseProtected()

in Core/src/MainUtil.cs [375:397]


    private static bool? ParseProtected(string? value, string defaultValue) => value != null
      ? AccessUtil.GetProtectedValue(value)
      : AccessUtil.GetProtectedValue(defaultValue);

    private static async Task<IReadOnlyCollection<string>> ParsePaths(IEnumerable<string> paths)
    {
      if (paths == null)
        throw new ArgumentNullException(nameof(paths));
      var res = new List<string>();
      foreach (var path in paths)
        if (path.StartsWith('@'))
        {
          using var reader = new StreamReader(path.Substring(1));
          string? line;
          while ((line = await reader.ReadLineAsync()) != null)
            if (line.Length != 0)
              res.Add(line);
        }
        else
          res.Add(path);

      return res;
    }