Index: Ringtoets/Common/src/Ringtoets.Common.IO/Writers/XmlWriterExtensions.cs =================================================================== diff -u -rc0c4d914f97d3471b73898030db0066dced39331 -reeac9fe0e250075e6e95683e4781b7b96ddc178c --- Ringtoets/Common/src/Ringtoets.Common.IO/Writers/XmlWriterExtensions.cs (.../XmlWriterExtensions.cs) (revision c0c4d914f97d3471b73898030db0066dced39331) +++ Ringtoets/Common/src/Ringtoets.Common.IO/Writers/XmlWriterExtensions.cs (.../XmlWriterExtensions.cs) (revision eeac9fe0e250075e6e95683e4781b7b96ddc178c) @@ -34,15 +34,15 @@ public static class XmlWriterExtensions { /// - /// Writes a single as a stochast element in file. + /// Writes a single as a stochast element in file. /// /// The writer to use to write the distribution. /// The name of the distribution to write. /// The distribution to write. /// Thrown when the is /// in an invalid state for writing. /// Thrown when any of the input parameters is null. - public static void WriteDistribution(this XmlWriter writer, string name, MeanStandardDeviationStochastConfiguration distribution) + public static void WriteDistribution(this XmlWriter writer, string name, StochastConfiguration distribution) { if (writer == null) { @@ -68,41 +68,6 @@ { writer.WriteElementString(ConfigurationSchemaIdentifiers.StandardDeviationElement, XmlConvert.ToString(distribution.StandardDeviation.Value)); } - - writer.WriteEndElement(); - } - - /// - /// Writes a single as a stochast element in file. - /// - /// The writer to use to write the distribution. - /// The name of the distribution to write. - /// The distribution to write. - /// Thrown when the is - /// in an invalid state for writing. - /// Thrown when any of the input parameters is null. - public static void WriteDistribution(this XmlWriter writer, string name, MeanVariationCoefficientStochastConfiguration distribution) - { - if (writer == null) - { - throw new ArgumentNullException(nameof(writer)); - } - if (name == null) - { - throw new ArgumentNullException(nameof(name)); - } - if (distribution == null) - { - throw new ArgumentNullException(nameof(distribution)); - } - - writer.WriteStartElement(ConfigurationSchemaIdentifiers.StochastElement); - writer.WriteAttributeString(ConfigurationSchemaIdentifiers.NameAttribute, name); - - if (distribution.Mean.HasValue) - { - writer.WriteElementString(ConfigurationSchemaIdentifiers.MeanElement, XmlConvert.ToString(distribution.Mean.Value)); - } if (distribution.VariationCoefficient.HasValue) { writer.WriteElementString(ConfigurationSchemaIdentifiers.VariationCoefficientElement, XmlConvert.ToString(distribution.VariationCoefficient.Value));