diff --git a/BinaryObjectScanner/Scanner.cs b/BinaryObjectScanner/Scanner.cs index 1f3c6b40..73aabc59 100644 --- a/BinaryObjectScanner/Scanner.cs +++ b/BinaryObjectScanner/Scanner.cs @@ -5,7 +5,9 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; +#if NET462_OR_GREATER || NETCOREAPP using System.Text; +#endif using System.Threading.Tasks; using BinaryObjectScanner.FileType; using BinaryObjectScanner.Interfaces; @@ -92,7 +94,7 @@ namespace BinaryObjectScanner public ConcurrentDictionary>? GetProtections(string path) #endif { - return GetProtections(new List { path }); + return GetProtections([path]); } ///