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