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)))); }
public static double AttributeAsInches(this SXL.XElement el, string name, double def) { return(el.GetAttributeValue(name, def, s => XmlLinqExtensions.PointsToInches(double.Parse(s)))); }