Mercurial > repos > IBBoard
comparison Xml/XmlTools.cs @ 26:14f3daf48ba5
Re #18 - Migrate XML handling methods to core utils
* Make double parsing method public
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 28 Mar 2009 20:37:40 +0000 |
parents | 148edabc9c73 |
children | 4ea1fc351533 |
comparison
equal
deleted
inserted
replaced
25:148edabc9c73 | 26:14f3daf48ba5 |
---|---|
47 /// The name of the attribute to get as a double | 47 /// The name of the attribute to get as a double |
48 /// </param> | 48 /// </param> |
49 /// <returns> | 49 /// <returns> |
50 /// The value of the attribute as an double | 50 /// The value of the attribute as an double |
51 /// </returns> | 51 /// </returns> |
52 private double GetDoubleValueFromAttribute(XmlElement elem, string attributeName) | 52 public static double GetDoubleValueFromAttribute(XmlElement elem, string attributeName) |
53 { | 53 { |
54 double doubleVal = double.NaN; | 54 double doubleVal = double.NaN; |
55 string attribValue = elem.GetAttribute(attributeName); | 55 string attribValue = elem.GetAttribute(attributeName); |
56 | 56 |
57 if (attribValue == "INF") | 57 if (attribValue == "INF") |