Пример #1
0
 internal P_DefaultHolder(IVh <CompiledLambdaExpressionCache> holder)
 {
     holder.EnsureNotNull(nameof(holder));
     //
     Holder = holder;
     Value  = holder.Value;
 }
Пример #2
0
 public static void SetDefault(CompiledLambdaExpressionCache defaultCache, bool ownsDefaultCache)
 {
     defaultCache.EnsureNotNull(nameof(defaultCache));
     //
     Interlocked.Exchange(ref __Default, new P_DefaultHolder(defaultCache.ToValueHolder(ownsDefaultCache)))?.Holder?.Dispose();
 }