Exemple #1
0
            public ContentModel.ISerializer Get(IMember parameter)
            {
                var serializer = _contents.Get(parameter);
                var result     = _registrations.IsSatisfiedBy(parameter.Metadata)
                                                     ? new Serializer(_registrations.Get(parameter.Metadata), serializer)
                                                     : serializer;

                return(result);
            }
Exemple #2
0
            public ContentModel.ISerializer Get(TypeInfo parameter)
            {
                var serializer = _contents.Get(parameter);
                var result     = _registrations.IsSatisfiedBy(parameter)
                                                     ? new Serializer(_registrations.Get(parameter), serializer)
                                                     : serializer;

                return(result);
            }
 public void Execute(object parameter)
 {
     foreach (var member in _members)
     {
         if (_values.IsSatisfiedBy(member.Name))
         {
             var access = _accessors.Get(member);
             var value  = _values.Get(member.Name);
             access.Assign(parameter, value);
         }
     }
 }
Exemple #4
0
 public bool IsSatisfiedBy(string parameter) => _source.IsSatisfiedBy(parameter);
Exemple #5
0
 public object Get(string parameter)
 => _store.IsSatisfiedBy(parameter) ? _store.Get(parameter) : Default(parameter);
 public bool IsSatisfiedBy(TType parameter) => _store.IsSatisfiedBy(parameter);