System\Xml\Schema\XmlValueConverter.cs (23)
329public override bool ToBoolean(DateTime value) { return (bool)ChangeType((object)value, BooleanType, null); }
330public override bool ToBoolean(double value) { return (bool)ChangeType((object)value, BooleanType, null); }
331public override bool ToBoolean(int value) { return (bool)ChangeType((object)value, BooleanType, null); }
332public override bool ToBoolean(long value) { return (bool)ChangeType((object)value, BooleanType, null); }
333public override bool ToBoolean(string value) { return (bool)ChangeType((object)value, BooleanType, null); }
334public override bool ToBoolean(object value) { return (bool)ChangeType((object)value, BooleanType, null); }
1576if (sourceType == BooleanType) return ((bool)value);
1580return (bool)ChangeListType(value, BooleanType, null);
1640if (sourceType == BooleanType) return XmlConvert.ToString((bool)value);
1657if (destinationType == BooleanType) return ((bool)value);
1671if (destinationType == BooleanType) return XmlConvert.ToBoolean((string)value);
1687if (destinationType == BooleanType) return this.ToBoolean(value);
1691if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType!, (bool)value));
1697if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType!, (bool)value));
2040return (bool)ChangeTypeWildcardDestination(value, BooleanType, null);
2239if (sourceType == BooleanType) return XmlConvert.ToString((bool)value);
2334if (destinationType == BooleanType) return XmlConvert.ToBoolean((string)value);
2367if (destinationType == BooleanType)
2506if (clrType == BooleanType) return true;
2552return (bool)ChangeTypeWildcardDestination(value, BooleanType, null);
2757if (destinationType == BooleanType)
2792if (sourceType == BooleanType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool)value));
2982if (itemTypeDst == BooleanType) return ToArray<bool>(value, nsResolver);