public object Get(IFormatReader parameter) { var reader = parameter.Get() .To <System.Xml.XmlReader>(); var items = new ArrayList(); while (!IdentityComparer.Default.Equals(parameter, _identity)) { var value = _serializer.Get(parameter); items.Add(value); reader.Read(); reader.MoveToContent(); } if (reader.HasValue) { items.Add(_item.Get(parameter)); } reader.Read(); var result = _lists.Get(items); return(result); }
object Default(string parameter) { var member = _members.Get(parameter); var result = _defaults.Get(member.MemberType); return(result); }
public ISerializer Get(TypeInfo parameter) { var specification = _specifications.Get(parameter); var serializer = _serializers.Get(parameter); var result = specification != null ? new Serializer(specification, serializer) : serializer; return(result); }
public static ImmutableArray <TItem>?GetAny <T, TItem>(this IParameterizedSource <T, ImmutableArray <TItem> > @this, T parameter) { var items = @this.Get(parameter); var result = items.Any() ? items : (ImmutableArray <TItem>?)null; return(result); }
public object Get(IFormatReader parameter) { var reader = parameter.Get() .To <System.Xml.XmlReader>(); var items = new ArrayList(); reader.MoveToContent(); while (parameter.Name == _name) { var value = _item.Get(parameter); items.Add(value); reader.Read(); } var result = _lists.Get(items); return(result); }
public TypeInfo Get(IIdentity parameter) => _identities.Get(parameter) ?? _types.Get(parameter.Name);
public TResult Get(TFrom parameter) => _source.Get(_coercer.Get(parameter));
public TypeInfo Get(IIdentity parameter) => _types.Get(parameter);
IAllowedValueSpecification From(MemberDescriptor descriptor) { var result = IsCollectionTypeSpecification.Default.IsSatisfiedBy(descriptor.MemberType) ? new AllowedValueSpecification(_generic .Get(_type.Get(descriptor.MemberType)) .Invoke(_allowed)) : _allowed; return(result); }
public IInnerContentActivator Get(TypeInfo parameter) => new XmlInnerContentActivator(_activation.Get(parameter), _activator.Get(parameter));
public TypeInfo Get(TypeInfo parameter) => _locator.Get(_implementation.Get(parameter));
public void Write(IFormatWriter writer, object instance) { _writer.Write(writer, _lists.Get(instance.AsValid <IEnumerable <T> >())); }
public static T Get <T>(this IParameterizedSource <Type, T> @this, TypeInfo parameter) => @this.Get(parameter.AsType());
public static T Get <T>(this IParameterizedSource <TypeInfo, T> @this, Type parameter) => @this.Get(parameter.GetTypeInfo());
public static T Get <T>(this IParameterizedSource <Stream, T> @this, string parameter) => @this.Get(new MemoryStream(Encoding.UTF8.GetBytes(parameter)));
/// <inheritdoc /> public TResult Get(TParameter parameter) => _source.Get(parameter);
public TTo Get(TParameter parameter) => _coercer.Get(_source.Get(parameter));
protected override int Create(MemberInfo parameter) => _store.GetStructure(parameter) ?? _source.Get(parameter);
public TResult Get(TParameter parameter) => _alteration.Get(_source.Get(parameter));
public static T Get <T>(this IParameterizedSource <ImmutableArray <TypeInfo>, T> @this, params TypeInfo[] parameters) => @this.Get(parameters.ToImmutableArray());
public ISerializer Get(IMember parameter) => _serializers.Get(parameter.Metadata) ?? Activate(parameter);
public IIdentity Get(TypeInfo parameter) => _identities.Get(parameter);