Add and use new nullable string extensions

This commit is contained in:
Matt Nadareski
2024-12-02 00:35:04 -05:00
parent 0aff061781
commit a6b494841f
57 changed files with 599 additions and 308 deletions

View File

@@ -32,7 +32,7 @@ namespace BinaryObjectScanner.Protection
// Found in "Code-Lock.ocx" in Code-Lock version 2.35.
// Also worth noting is the File Description for this file, which is "A future for you, a challenge for the rest.".
var name = pex.ProductName;
if (name?.StartsWith("Code-Lock", StringComparison.OrdinalIgnoreCase) == true)
if (name.OptionalStartsWith("Code-Lock", StringComparison.OrdinalIgnoreCase))
return $"ChosenBytes Code-Lock {pex.ProductVersion}";
// Get the .text section strings, if they exist