AgGateway.ADAPT.ISOv4Plugin.Writers.ProductWriter.WriteTotalQuantity C# (CSharp) Method

WriteTotalQuantity() private static method

private static WriteTotalQuantity ( XmlWriter writer, AgGateway.ADAPT.ApplicationDataModel.Representations.NumericRepresentationValue quantity ) : void
writer System.Xml.XmlWriter
quantity AgGateway.ADAPT.ApplicationDataModel.Representations.NumericRepresentationValue
return void
        private static void WriteTotalQuantity(XmlWriter writer, NumericRepresentationValue quantity)
        {
            if (quantity == null || quantity.Value == null)
                return;

            writer.WriteXmlAttribute("G", quantity.Value.Value.ToString("F0", CultureInfo.InvariantCulture));
        }