Example #1
0
        public static bool XmlGetAttributeBool(XmlNode node, string name, bool def)
        {
            XmlNode nodeAttr = node.Attributes[name];

            if (nodeAttr == null)
            {
                return(def);
            }
            else
            {
                return(Conversions.ToBool(nodeAttr.Value));
            }
        }
Example #2
0
 public bool GetBool(string name)
 {
     return(Conversions.ToBool(Get(name)));
 }