NLog.LogEventInfo.TryGetCachedLayoutValue C# (CSharp) Method

TryGetCachedLayoutValue() private method

private TryGetCachedLayoutValue ( Layout layout, string &value ) : bool
layout Layout
value string
return bool
        internal bool TryGetCachedLayoutValue(Layout layout, out string value)
        {
            if (this.layoutCache == null)
            {
                value = null;
                return false;
            }

            lock (this.layoutCache)
            {
                return this.layoutCache.TryGetValue(layout, out value);
            }
        }