DataType refactoring - in progress

This commit is contained in:
Stephan
2018-01-26 17:55:20 +01:00
parent f7f42f893b
commit e60a5a4a83
110 changed files with 662 additions and 1525 deletions

View File

@@ -225,8 +225,7 @@ namespace Umbraco.Core.Cache
//return result.Value;
var value = result.Value; // will not throw (safe lazy)
var eh = value as DictionaryCacheProviderBase.ExceptionHolder;
if (eh != null) throw eh.Exception; // throw once!
if (value is DictionaryCacheProviderBase.ExceptionHolder eh) eh.Exception.Throw(); // throw once!
return value;
}