View Source
Class SafeLazy
Inheritance
System.Object
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<System.Object> |
getCacheItem |
|
Returns
Type |
Description |
Lazy<System.Object> |
|
View Source
GetSafeLazyValue(Nullable<Lazy<Object>>, Boolean)
Declaration
public static object GetSafeLazyValue(Lazy<object>? lazy, bool onlyIfValueIsCreated = false)
Parameters
Type |
Name |
Description |
System.Nullable<Lazy<System.Object>> |
lazy |
|
System.Boolean |
onlyIfValueIsCreated |
|
Returns
Type |
Description |
System.Object |
|