/// <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; }
/// <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; }
public FhirJsonSerializer(SerializerSettings settings = null) : base(settings) { }
public BaseFhirSerializer(SerializerSettings settings) { Settings = settings?.Clone() ?? new SerializerSettings(); }