public static double AttributeAsInches(this SXL.XElement el, string name, double def)
 {
     System.Func <string, double> double_parse = str => double.Parse(str, System.Globalization.CultureInfo.InvariantCulture);
     return(el.GetAttributeValue(name, def, s => XmlLinqExtensions.PointsToInches(double_parse(s))));
 }
Example #2
0
 public static double AttributeAsInches(this SXL.XElement el, string name, double def)
 {
     var culture = System.Globalization.CultureInfo.InvariantCulture;
     double DoubleParse(string str) => double.Parse(str, culture);
     return el.GetAttributeValue(name, def, s => XmlLinqExtensions.PointsToInches(DoubleParse(s)));
 }