DbgDotNetEngineValueNodeFactory GetFactory(DbgDotNetFormatter formatter, Lazy <DbgDotNetValueNodeFactory, IDbgDotNetValueNodeFactoryMetadata> lz)
 {
     lock (toFactory) {
         if (!toFactory.TryGetValue(lz, out var factory))
         {
             toFactory.Add(lz, factory = new DbgDotNetEngineValueNodeFactoryImpl(formatter, lz.Value, errorMessagesHelper));
         }
         return(factory);
     }
 }
예제 #2
0
        public DbgEngineValueNodeImpl(DbgDotNetEngineValueNodeFactoryImpl owner, DbgDotNetValueNode dnValueNode)
        {
            if (dnValueNode is null)
            {
                throw new ArgumentNullException(nameof(dnValueNode));
            }
            this.owner = owner ?? throw new ArgumentNullException(nameof(owner));
            var dnValue = dnValueNode.Value;

            value            = dnValue is null ? null : new DbgEngineValueImpl(dnValue);
            this.dnValueNode = dnValueNode;
        }