Exemplo n.º 1
0
        public object Get(ReferenceIdentity parameter)
        {
            var result = _map.Get(parameter);

            if (result == null)
            {
                var source  = _map.Fix(parameter);
                var current = _contexts.Peek();
                var command = Command(current, source);
                _commands.Add(command);
            }
            return(result);
        }
Exemplo n.º 2
0
        public object Get(ReferenceIdentity parameter)
        {
            var result = _map.Get(parameter);

            if (result == null)
            {
                var source  = _map.Fix(parameter);
                var current = _contexts.Peek();
                var command = current is IListInnerContent list
                                                      ? new DeferredCollectionAssignmentCommand(list.List, source)
                                                      : Member(current, source);
                _commands.Add(command);
            }

            return(result);
        }
Exemplo n.º 3
0
 public bool Remove(ReferenceIdentity key) => _map.Remove(key);
Exemplo n.º 4
0
 public void Assign(ReferenceIdentity key, object value) => _map.Assign(key, value);
Exemplo n.º 5
0
 public bool IsSatisfiedBy(ReferenceIdentity parameter) => _map.IsSatisfiedBy(parameter);