コード例 #1
0
 public XmlElementConfiguration(IXmlSerializerConfiguration config, SimpleMapper <XmlElementContext> mapper, XmlElementTarget target,
                                XmlElementTarget root, Type targetType)
 {
     _config     = Argument.NotNull(config, nameof(config));
     _mapper     = Argument.NotNull(mapper, nameof(mapper));
     _target     = Argument.NotNull(target, nameof(target));
     _root       = Argument.NotNull(root, nameof(root));
     _targetType = Argument.NotNull(targetType, nameof(targetType));
 }
 public XmlAttributeConfiguration([NotNull] IXmlSerializerConfiguration config,
                                  [NotNull] XmlElementTarget rootTarget, [NotNull] XmlElementTarget target,
                                  [NotNull] SimpleMapper<XmlElementContext> mapper, [NotNull] Type targetType)
 {
     _config = config;
     _rootTarget = rootTarget;
     _target = target;
     _mapper = mapper;
     _targetType = targetType;
 }