コード例 #1
0
 /// <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);
 }
コード例 #2
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;
            other.AppendNewLine = AppendNewLine;
            other.TrimWhiteSpacesInXml = TrimWhiteSpacesInXml;
        }
コード例 #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;
        }
コード例 #4
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;
            other.AppendNewLine        = AppendNewLine;
            other.TrimWhiteSpacesInXml = TrimWhiteSpacesInXml;
            other.IncludeMandatoryInElementsSummary = IncludeMandatoryInElementsSummary;
        }
コード例 #5
0
 public FhirJsonSerializer(SerializerSettings settings = null) : base(settings)
 {
 }
コード例 #6
0
 public BaseFhirSerializer(SerializerSettings settings)
 {
     Settings = settings?.Clone() ?? new SerializerSettings();
 }