public IInnerContentActivator Get(TypeInfo parameter) { var content = _activator.Get(parameter); var typeInfo = _member.Get(parameter) ?.Item2.MemberType; var result = typeInfo != null ? new InnerContentActivator(content, _collection.IsSatisfiedBy(typeInfo)) : content; return(result); }
IMemberSerializer Create(IMemberSerializer serializer, Type owner) { var item = CollectionItemTypeLocator.Default.Get(serializer.Profile.MemberType); var itemType = _member.Get(owner) .Item1; var member = (IMemberSerializer) new MemberSerializer(serializer, _converters.Get(itemType)); var result = item != null ? new ListSerializer(_serializer, _serializers, serializer, member, _identities.Get(owner), item) : member; return(result); }