introduce guard-statement to protect against dupl entries in the dictionary
This commit is contained in:
@@ -2811,6 +2811,7 @@ namespace Spring.Objects.Factory.Support
|
||||
/// naturally implement <see cref="IDisposable"/>).
|
||||
public void RegisterDisposableObject(String objectName, IDisposable instance)
|
||||
{
|
||||
if (disposableObjects.ContainsKey(objectName)) return;
|
||||
disposableObjects.Add(objectName, instance);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user