internal P_DefaultHolder(IVh <CompiledLambdaExpressionCache> holder) { holder.EnsureNotNull(nameof(holder)); // Holder = holder; Value = holder.Value; }
public static void SetDefault(CompiledLambdaExpressionCache defaultCache, bool ownsDefaultCache) { defaultCache.EnsureNotNull(nameof(defaultCache)); // Interlocked.Exchange(ref __Default, new P_DefaultHolder(defaultCache.ToValueHolder(ownsDefaultCache)))?.Holder?.Dispose(); }