FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (27)
374public override bool ToBoolean(bool value) { return (bool)ChangeType((object)value, BooleanType, null); }
375public override bool ToBoolean(DateTime value) { return (bool)ChangeType((object)value, BooleanType, null); }
376public override bool ToBoolean(DateTimeOffset value) { return (bool)ChangeType((object)value, BooleanType, null); }
377public override bool ToBoolean(decimal value) { return (bool)ChangeType((object)value, BooleanType, null); }
378public override bool ToBoolean(double value) { return (bool)ChangeType((object)value, BooleanType, null); }
379public override bool ToBoolean(int value) { return (bool)ChangeType((object)value, BooleanType, null); }
380public override bool ToBoolean(long value) { return (bool)ChangeType((object)value, BooleanType, null); }
381public override bool ToBoolean(float value) { return (bool)ChangeType((object)value, BooleanType, null); }
382public override bool ToBoolean(string value) { return (bool)ChangeType((object)value, BooleanType, null); }
383public override bool ToBoolean(object value) { return (bool)ChangeType((object)value, BooleanType, null); }
1845if (sourceType == BooleanType) return ((bool)value);
1849return (bool)ChangeListType(value, BooleanType, null);
1915if (sourceType == BooleanType) return XmlConvert.ToString((bool)value);
1932if (destinationType == BooleanType) return ((bool)value);
1946if (destinationType == BooleanType) return XmlConvert.ToBoolean((string)value);
1962if (destinationType == BooleanType) return this.ToBoolean(value);
1966if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType, (bool)value));
1972if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType, (bool)value));
2434return (bool)ChangeTypeWildcardDestination(value, BooleanType, null);
2639if (sourceType == BooleanType) return XmlConvert.ToString((bool)value);
2754if (destinationType == BooleanType) return XmlConvert.ToBoolean((string)value);
2787if (destinationType == BooleanType)
2926if (clrType == BooleanType) return true;
3064return (bool)ChangeTypeWildcardDestination(value, BooleanType, null);
3289if (destinationType == BooleanType)
3324if (sourceType == BooleanType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool)value));
3514if (itemTypeDst == BooleanType) return ToArray<bool>(value, nsResolver);