fix: Fixed threading exception in TypeExtensions

This commit is contained in:
Chris Cameron
2019-05-28 09:52:06 -04:00
parent a6fbd5a6d2
commit 7e3aef4cb3
2 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- Fixed JSON DateTime parsing in .Net Standard
- Fixed threading exception in TypeExtensions
## [9.4.0] - 2019-05-10
### Added

View File

@@ -369,7 +369,7 @@ namespace ICD.Common.Utils.Extensions
: extends.FullName;
}
s_TypeToMinimalName.Add(extends, name);
s_TypeToMinimalName[extends] = name;
}
return name;
@@ -389,7 +389,7 @@ namespace ICD.Common.Utils.Extensions
if (!s_TypeToNameWithoutAssemblyDetails.TryGetValue(extends, out name))
{
name = RemoveAssemblyDetails(extends.AssemblyQualifiedName);
s_TypeToNameWithoutAssemblyDetails.Add(extends, name);
s_TypeToNameWithoutAssemblyDetails[extends] = name;
}
return name;