private GetBoolValue ( System.Xml.Linq.XElement library, string id, bool defaultValue ) : bool | ||
library | System.Xml.Linq.XElement | |
id | string | |
defaultValue | bool | |
return | bool |
private bool GetBoolValue(XElement library, string id, bool defaultValue)
{
string s = GetValue(library, id, defaultValue.ToString());
bool b;
bool.TryParse(s, out b);
return b;
}