Example #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);
        }
Example #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);
        }
Example #3
0
 public bool Remove(ReferenceIdentity key) => _map.Remove(key);
Example #4
0
 public void Assign(ReferenceIdentity key, object value) => _map.Assign(key, value);
Example #5
0
 public bool IsSatisfiedBy(ReferenceIdentity parameter) => _map.IsSatisfiedBy(parameter);