49 references to ToBoolean
System.Data.Common (22)
System\Data\Common\BooleanStorage.cs (1)
172
return XmlConvert.
ToBoolean
(s);
System\Data\Common\SQLConvert.cs (2)
571
return new SqlBoolean(XmlConvert.
ToBoolean
((string)value));
606
return XmlConvert.
ToBoolean
((string)value);
System\Data\SQLTypes\SQLBinary.cs (1)
417
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLBoolean.cs (2)
484
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
492
m_value = XmlConvert.
ToBoolean
(reader.ReadElementString()) ? x_True : x_False;
System\Data\SQLTypes\SQLByte.cs (1)
493
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLBytes.cs (1)
530
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLChars.cs (1)
496
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLDateTime.cs (1)
635
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLDecimal.cs (1)
3352
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLDouble.cs (1)
409
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLGuid.cs (1)
298
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLInt16.cs (1)
494
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLInt32.cs (1)
509
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLInt64.cs (1)
568
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLMoney.cs (1)
565
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLSingle.cs (1)
419
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SQLString.cs (1)
925
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\SQLTypes\SqlXml.cs (1)
212
if (isNull != null && XmlConvert.
ToBoolean
(isNull))
System\Data\XmlDataLoader.cs (2)
1181
if ((xsiNilString != null) && XmlConvert.
ToBoolean
(xsiNilString))
1346
if (0 == text.Length && xsiNilString != null && XmlConvert.
ToBoolean
(xsiNilString))
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\SchemaImporter.cs (3)
811
return XmlConvert.
ToBoolean
(isValueTypeInnerText);
1029
return XmlConvert.
ToBoolean
(emitDefaultValueAttribute.Value);
1158
return XmlConvert.
ToBoolean
(isDictionaryInnerText);
System\Xml\XmlConverter.cs (1)
41
return XmlConvert.
ToBoolean
(value);
System.Private.Xml (19)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
1121
return XmlConvert.
ToBoolean
(string.Empty);
System\Xml\Core\XmlReader.cs (2)
163
return XmlConvert.
ToBoolean
(InternalReadContentAsString());
375
return XmlConvert.
ToBoolean
(string.Empty);
System\Xml\Schema\XmlSchemaValidator.cs (1)
1663
_context.IsNill = XmlConvert.
ToBoolean
(xsiNil);
System\Xml\Schema\XmlValueConverter.cs (7)
1568
return XmlConvert.
ToBoolean
((string)value);
1577
if (sourceType == StringType) return XmlConvert.
ToBoolean
((string)value);
1671
if (destinationType == BooleanType) return XmlConvert.
ToBoolean
((string)value);
2030
return XmlConvert.
ToBoolean
((string)value);
2038
if (sourceType == StringType) return XmlConvert.
ToBoolean
((string)value);
2334
if (destinationType == BooleanType) return XmlConvert.
ToBoolean
((string)value);
2369
if (sourceType == StringType) return XmlConvert.
ToBoolean
((string)value);
System\Xml\Schema\XsdBuilder.cs (1)
2482
return XmlConvert.
ToBoolean
(value);
System\Xml\Schema\XsdValidator.cs (1)
427
context!.IsNill = XmlConvert.
ToBoolean
(xsiNil);
System\Xml\Serialization\PrimitiveXmlSerializers.cs (1)
310
o = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
328
if (root == null || XmlConvert.
ToBoolean
(root))
1194
"Boolean" => XmlConvert.
ToBoolean
(value),
System\Xml\Serialization\XmlSerializationReader.cs (3)
560
value = XmlConvert.
ToBoolean
(ReadStringValue());
632
value = XmlConvert.
ToBoolean
(ReadStringValue());
837
if (isNull == null || !XmlConvert.
ToBoolean
(isNull)) return false;
System.Private.Xml.Linq (4)
System\Xml\Linq\XAttribute.cs (2)
258
return XmlConvert.
ToBoolean
(attribute.value.ToLowerInvariant());
275
return XmlConvert.
ToBoolean
(attribute.value.ToLowerInvariant());
System\Xml\Linq\XElement.cs (2)
1367
return XmlConvert.
ToBoolean
(element.Value.ToLowerInvariant());
1387
return XmlConvert.
ToBoolean
(element.Value.ToLowerInvariant());