Пример #1
0
        public XmlRestSerializer WithXmlDeserialzier <T>(XmlSerilizationOptions options = null)
            where T : IXmlDeserializer, new()
        {
            if (options != null)
            {
                _options = options;
            }

            return(WithXmlDeserializer(new T
            {
                Namespace = _options.Namespace,
                DateFormat = _options.DateFormat,
                RootElement = _options.RootElement
            }));
        }
Пример #2
0
 public XmlRestSerializer WithOptions(XmlSerilizationOptions options)
 {
     _options = options;
     return(this);
 }