View Source
Class SafeLazy
Assembly: Umbraco.Core.dll
Syntax
public static class SafeLazy
Methods
View Source
GetSafeLazy(Func<object?>)
Declaration
public static Lazy<object?> GetSafeLazy(Func<object?> getCacheItem)
Parameters
| Type |
Name |
Description |
| Func<object> |
getCacheItem |
|
Returns
| Type |
Description |
| Lazy<object> |
|
View Source
GetSafeLazyValue(Lazy<object?>?, bool)
Declaration
public static object? GetSafeLazyValue(Lazy<object?>? lazy, bool onlyIfValueIsCreated = false)
Parameters
| Type |
Name |
Description |
| Lazy<object> |
lazy |
|
| bool |
onlyIfValueIsCreated |
|
Returns