Search Results for

    Show / Hide Table of Contents
    View Source

    Class SafeLazy

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Cache
    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
    Type Description
    object
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX