/// <summary>Clone constructor. Generates a new <see cref="SerializerSettings"/> instance initialized from the state of the specified instance.</summary>
 /// <exception cref="ArgumentNullException">The specified argument is <c>null</c>.</exception>
 public SerializerSettings(SerializerSettings other)
 {
     if (other == null)
     {
         throw Error.ArgumentNull(nameof(other));
     }
     other.CopyTo(this);
 }
        /// <summary>Copy all configuration settings to another instance.</summary>
        /// <param name="other">Another <see cref="SerializerSettings"/> instance.</param>
        /// <exception cref="ArgumentNullException">The specified argument is <c>null</c>.</exception>
        public void CopyTo(SerializerSettings other)
        {
            if (other == null) throw Error.ArgumentNull(nameof(other));

            other.Pretty = Pretty;
            other.AppendNewLine = AppendNewLine;
            other.TrimWhiteSpacesInXml = TrimWhiteSpacesInXml;
        }
Ejemplo n.º 3
0
        /// <summary>Copy all configuration settings to another instance.</summary>
        /// <param name="other">Another <see cref="SerializerSettings"/> instance.</param>
        /// <exception cref="ArgumentNullException">The specified argument is <c>null</c>.</exception>
        public void CopyTo(SerializerSettings other)
        {
            if (other == null)
            {
                throw Error.ArgumentNull(nameof(other));
            }

            other.Pretty = Pretty;
        }
        /// <summary>Copy all configuration settings to another instance.</summary>
        /// <param name="other">Another <see cref="SerializerSettings"/> instance.</param>
        /// <exception cref="ArgumentNullException">The specified argument is <c>null</c>.</exception>
        public void CopyTo(SerializerSettings other)
        {
            if (other == null)
            {
                throw Error.ArgumentNull(nameof(other));
            }

            other.Pretty               = Pretty;
            other.AppendNewLine        = AppendNewLine;
            other.TrimWhiteSpacesInXml = TrimWhiteSpacesInXml;
            other.IncludeMandatoryInElementsSummary = IncludeMandatoryInElementsSummary;
        }
Ejemplo n.º 5
0
 public FhirJsonSerializer(SerializerSettings settings = null) : base(settings)
 {
 }
Ejemplo n.º 6
0
 public BaseFhirSerializer(SerializerSettings settings)
 {
     Settings = settings?.Clone() ?? new SerializerSettings();
 }