126 references to ToBoolean
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\XmlPropertyBag.cs (1)
170
return XmlConvert.
ToBoolean
(value);
System.Data (22)
fx\src\data\System\Data\Common\BooleanStorage.cs (1)
154
return XmlConvert.
ToBoolean
(s);
fx\src\data\System\Data\Common\SQLConvert.cs (2)
626
return new SqlBoolean(XmlConvert.
ToBoolean
((string)value));
661
return XmlConvert.
ToBoolean
((string) value);
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (1)
475
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (2)
570
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
576
m_value = (byte)(XmlConvert.
ToBoolean
(reader.ReadElementString()) ? x_True : x_False);
fx\src\data\System\Data\SQLTypes\SQLByte.cs (1)
570
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (1)
529
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLChars.cs (1)
527
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
627
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (1)
3258
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (1)
490
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (1)
366
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (1)
579
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (1)
591
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (1)
645
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (1)
631
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (1)
494
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLString.cs (1)
1007
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\SQLTypes\SqlXml.cs (1)
220
if (isNull != null && XmlConvert.
ToBoolean
(isNull)) {
fx\src\data\System\Data\XmlDataLoader.cs (2)
1111
if ((xsiNilString != null) && XmlConvert.
ToBoolean
(xsiNilString)) {
1255
if (0 == text.Length && xsiNilString != null && XmlConvert.
ToBoolean
(xsiNilString)) {
System.Data.Services (3)
System\Data\Services\Parsing\WebConvert.cs (2)
403
targetValue = XmlConvert.
ToBoolean
(text);
512
targetValue = XmlConvert.
ToBoolean
(text);
System\Data\Services\Serializers\PlainXmlDeserializer.cs (1)
268
if ((null != elementValue) && XmlConvert.
ToBoolean
(elementValue))
System.Data.Services.Client (2)
System\Data\Services\Client\ClientConvert.cs (1)
142
return XmlConvert.
ToBoolean
(propertyValue);
System\Data\Services\Client\Util.cs (1)
427
return ((null != attributeValue) && XmlConvert.
ToBoolean
(attributeValue));
System.Data.Services.Design (1)
System\Data\EntityModel\DataServiceBuildProvider.cs (1)
516
paramValue = XmlConvert.
ToBoolean
(value);
System.IdentityModel (10)
System\IdentityModel\Metadata\MetadataSerializer.cs (5)
459
isOptional = XmlConvert.
ToBoolean
(optionalString.ToLowerInvariant());
833
idpssoDescriptor.WantAuthenticationRequestsSigned = XmlConvert.
ToBoolean
(wantAuthnRequestSignedAttribute.ToLowerInvariant());
936
endpoint.IsDefault = XmlConvert.
ToBoolean
(isDefaultString.ToLowerInvariant());
1575
spssoDescriptor.AuthenticationRequestsSigned = XmlConvert.
ToBoolean
(authnRequestsSignedAttribute.ToLowerInvariant());
1589
spssoDescriptor.WantAssertionsSigned = XmlConvert.
ToBoolean
(wantAssertionsSignedAttribute.ToLowerInvariant());
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (3)
201
isOptional = XmlConvert.
ToBoolean
(optionalAttributeVal);
514
allowRenewal = XmlConvert.
ToBoolean
(attrValue);
520
renewalAfterExpiration = XmlConvert.
ToBoolean
(attrValue);
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
123
mapToWindows = XmlConvert.
ToBoolean
(attribute.Value.ToLowerInvariant());
System\IdentityModel\XmlUtil.cs (1)
148
return !string.IsNullOrEmpty(xsiNil) && XmlConvert.
ToBoolean
(xsiNil);
System.Runtime.Serialization (4)
System\Runtime\Serialization\SchemaImporter.cs (3)
829
return XmlConvert.
ToBoolean
(isValueTypeInnerText);
1043
return XmlConvert.
ToBoolean
(emitDefaultValueString);
1165
return XmlConvert.
ToBoolean
(isDictionaryInnerText);
System\Xml\XmlConverter.cs (1)
69
return XmlConvert.
ToBoolean
(value);
System.ServiceModel (3)
System\ServiceModel\Channels\MessageHeader.cs (1)
269
return XmlConvert.
ToBoolean
(value);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
283
claimTypeRequirement = new ClaimTypeRequirement(claimValue, XmlConvert.
ToBoolean
(optional));
System\ServiceModel\XmlUtil.cs (1)
37
return XmlConvert.
ToBoolean
(booleanValue);
System.Web.Extensions (14)
Compilation\XmlSerializer\DataSvcMapFileSerializer.cs (2)
543
o.@Ignore = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
548
o.@IsMergeResult = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
Compilation\XmlSerializer\SvcMapFileSerializer.cs (12)
650
o.@Ignore = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
655
o.@IsMergeResult = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
800
o.@GenerateAsynchronousMethods = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
806
o.@GenerateTaskBasedAsynchronousMethod = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
812
o.@EnableDataBinding = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
848
o.@ImportXmlTypes = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
854
o.@GenerateInternalTypes = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
860
o.@GenerateMessageContracts = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
926
o.@GenerateSerializableTypes = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
938
o.@UseSerializerForFaults = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
944
o.@Wrapped = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
950
o.@ReferenceAllAssemblies = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
System.Web.Services (45)
System\Web\Services\Description\ServiceDescription.cs (1)
1563
return XmlConvert.
ToBoolean
(requiredAttr.Value);
System\Web\Services\Description\ServiceDescriptionSerializer.cs (43)
4384
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
4434
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
4484
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
4770
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
4840
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
4998
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5070
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5136
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5198
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5270
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5336
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5399
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5475
o.@IgnoreCase = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5527
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5579
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5642
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5692
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5840
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5886
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5932
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5944
o.@SoapActionRequired = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
5998
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
6060
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
6110
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
6164
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
6218
o.@Required = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
7743
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
7815
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
7887
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
7959
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8031
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8103
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8175
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8247
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8319
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8391
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8463
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8535
o.@IsFixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8724
o.@IsAbstract = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
8752
o.@IsNillable = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
9158
o.@IsAbstract = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
9166
o.@IsMixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
9947
o.@IsMixed = System.Xml.XmlConvert.
ToBoolean
(Reader.Value);
System\Web\Services\Description\WebReferenceOptions.cs (1)
361
o.@Verbose = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
System.Xml (17)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
987
return XmlConvert.
ToBoolean
(String.Empty);
System\Xml\Core\XmlReader.cs (2)
216
return XmlConvert.
ToBoolean
(InternalReadContentAsString());
381
return XmlConvert.
ToBoolean
(string.Empty);
System\Xml\Schema\XmlSchemaValidator.cs (1)
1398
context.IsNill = XmlConvert.
ToBoolean
(xsiNil);
System\Xml\Schema\XmlValueConverter.cs (7)
1667
return XmlConvert.
ToBoolean
((string) value);
1675
if (sourceType == StringType) return XmlConvert.
ToBoolean
((string) value);
1770
if (destinationType == BooleanType) return XmlConvert.
ToBoolean
((string) value);
2187
return XmlConvert.
ToBoolean
((string) value);
2194
if (sourceType == StringType) return XmlConvert.
ToBoolean
((string) value);
2483
if (destinationType == BooleanType) return XmlConvert.
ToBoolean
((string) value);
2516
if (sourceType == StringType) return XmlConvert.
ToBoolean
((string) value);
System\Xml\Schema\XsdBuilder.cs (1)
2260
return XmlConvert.
ToBoolean
(value);
System\Xml\Schema\XsdValidator.cs (1)
357
context.IsNill = XmlConvert.
ToBoolean
(xsiNil);
System\Xml\Serialization\PrimitiveXmlSerializers.cs (1)
241
o = System.Xml.XmlConvert.
ToBoolean
(Reader.ReadElementString());
System\Xml\Serialization\XmlSerializationReader.cs (3)
558
value = XmlConvert.
ToBoolean
(ReadStringValue());
629
value = XmlConvert.
ToBoolean
(ReadStringValue());
827
if (isNull == null || !XmlConvert.
ToBoolean
(isNull)) return false;
System.Xml.Linq (4)
System\Xml\Linq\XLinq.cs (4)
4468
return XmlConvert.
ToBoolean
(element.Value.ToLower(CultureInfo.InvariantCulture));
4487
return XmlConvert.
ToBoolean
(element.Value.ToLower(CultureInfo.InvariantCulture));
6747
return XmlConvert.
ToBoolean
(attribute.value.ToLower(CultureInfo.InvariantCulture));
6762
return XmlConvert.
ToBoolean
(attribute.value.ToLower(CultureInfo.InvariantCulture));