27 references to BooleanType
System.Xml (27)
System\Xml\Schema\XmlValueConverter.cs (27)
363public override bool ToBoolean(bool value) {return (bool) ChangeType((object) value, BooleanType, null); } 364public override bool ToBoolean(DateTime value) {return (bool) ChangeType((object) value, BooleanType, null); } 365public override bool ToBoolean(DateTimeOffset value) {return (bool) ChangeType((object) value, BooleanType, null); } 366public override bool ToBoolean(decimal value) {return (bool) ChangeType((object) value, BooleanType, null); } 367public override bool ToBoolean(double value) {return (bool) ChangeType((object) value, BooleanType, null); } 368public override bool ToBoolean(int value) {return (bool) ChangeType((object) value, BooleanType, null); } 369public override bool ToBoolean(long value) {return (bool) ChangeType((object) value, BooleanType, null); } 370public override bool ToBoolean(float value) {return (bool) ChangeType((object) value, BooleanType, null); } 371public override bool ToBoolean(string value) {return (bool) ChangeType((object) value, BooleanType, null); } 372public override bool ToBoolean(object value) {return (bool) ChangeType((object) value, BooleanType, null); } 1674if (sourceType == BooleanType) return ((bool) value); 1678return (bool) ChangeListType(value, BooleanType, null); 1741if (sourceType == BooleanType) return XmlConvert.ToString((bool) value); 1757if (destinationType == BooleanType) return ((bool) value); 1770if (destinationType == BooleanType) return XmlConvert.ToBoolean((string) value); 1785if (destinationType == BooleanType) return this.ToBoolean(value); 1788if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType, (bool) value)); 1793if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType, (bool) value)); 2196return (bool) ChangeTypeWildcardDestination(value, BooleanType, null); 2377if (sourceType == BooleanType) return XmlConvert.ToString((bool) value); 2483if (destinationType == BooleanType) return XmlConvert.ToBoolean((string) value); 2515if (destinationType == BooleanType) { 2629if (clrType == BooleanType) return true; 2759return (bool) ChangeTypeWildcardDestination(value, BooleanType, null); 2967if (destinationType == BooleanType) { 2993if (sourceType == BooleanType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool) value)); 3165if (itemTypeDst == BooleanType) return ToArray<bool>(value, nsResolver);