Mono Class Library: System.Xml.XmlConvert Overview | MembersSystem.Xml.XmlConvert.ToBoolean Method |
Converts a string to a bool equivalent. [Edit]
|
The bool equivalent of s. [Edit]
Type Reason ArgumentNullException s is a null reference. [Edit] FormatException s does not represent a bool value. [Edit]
This method removes leading and trailing white space. After this trimming, valid strings are "1" and "true", which return true, and "0" and "false", which return false. [Edit]
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0