mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +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)
|
||||
throw new ArgumentNullException("key");
|
||||
|
||||
extends[key] = extends.GetDefault(key, defaultValue);
|
||||
return extends[key];
|
||||
TValue value = extends.GetDefault(key, defaultValue);
|
||||
extends[key] = value;
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue