mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
perf: Micro-optimization
This commit is contained in:
parent
fb41d76a9c
commit
8311fe5c9d
1 changed files with 4 additions and 2 deletions
|
|
@ -125,8 +125,10 @@ namespace ICD.Common.Utils.Extensions
|
||||||
if (key == null)
|
if (key == null)
|
||||||
throw new ArgumentNullException("key");
|
throw new ArgumentNullException("key");
|
||||||
|
|
||||||
extends[key] = extends.GetDefault(key, defaultValue);
|
TValue value = extends.GetDefault(key, defaultValue);
|
||||||
return extends[key];
|
extends[key] = value;
|
||||||
|
|
||||||
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue