mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-23 07:14:49 +00:00
Add support for .NET 10
This commit is contained in:
@@ -360,16 +360,15 @@ namespace ProtectionScan.Features
|
||||
var part = pathParts[i];
|
||||
|
||||
// Inserts new subdictionaries if one doesn't already exist
|
||||
if (!current.ContainsKey(part))
|
||||
if (!current.TryGetValue(part, out object? innerObject))
|
||||
{
|
||||
var innerDictionary = new Dictionary<string, object>();
|
||||
current[part] = innerDictionary;
|
||||
innerObject = innerDictionary;
|
||||
current[part] = innerObject;
|
||||
current = innerDictionary;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Handle instances where a protection was already assigned to the current node
|
||||
var innerObject = current[part];
|
||||
if (innerObject is string[] existingProtections)
|
||||
{
|
||||
modifyNodeList.Add((current, part, existingProtections));
|
||||
|
||||
Reference in New Issue
Block a user