erminas.SmartAPI.Utils.XmlUtil.GetDoubleAttributeValue C# (CSharp) Method

GetDoubleAttributeValue() public static method

public static GetDoubleAttributeValue ( this xmlElement, string attributeName ) : double?
xmlElement this
attributeName string
return double?
        public static double? GetDoubleAttributeValue(this XmlElement xmlElement, string attributeName)
        {
            XmlAttribute attr = xmlElement.Attributes[attributeName];
            return attr == null ? (double?) null : Double.Parse(attr.Value, CultureInfo.InvariantCulture);
        }