Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/Registration/InternalRegistration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ public virtual void Set(Type policyInterface, object policy)
}
else
{
for (var node = (LinkedNode<Type, object>)this; node != null; node = node.Next)
{
if (node.Key == policyInterface)
{
// Found it
node.Value = policy;
return;
}
}

// If not found, insert after the current object
Next = new LinkedNode<Type, object>
{
Key = policyInterface,
Expand Down