FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (31)
429public override int ToInt32(bool value) { return (int)ChangeType((object)value, Int32Type, null); }
430public override int ToInt32(DateTime value) { return (int)ChangeType((object)value, Int32Type, null); }
431public override int ToInt32(DateTimeOffset value) { return (int)ChangeType((object)value, Int32Type, null); }
432public override int ToInt32(decimal value) { return (int)ChangeType((object)value, Int32Type, null); }
433public override int ToInt32(double value) { return (int)ChangeType((object)value, Int32Type, null); }
434public override int ToInt32(int value) { return (int)ChangeType((object)value, Int32Type, null); }
435public override int ToInt32(long value) { return (int)ChangeType((object)value, Int32Type, null); }
436public override int ToInt32(float value) { return (int)ChangeType((object)value, Int32Type, null); }
437public override int ToInt32(string value) { return (int)ChangeType((object)value, Int32Type, null); }
438public override int ToInt32(object value) { return (int)ChangeType((object)value, Int32Type, null); }
1025if (sourceType == Int32Type) return ((decimal)(int)value);
1071if (sourceType == Int32Type) return ((int)value);
1076return (int)ChangeTypeWildcardDestination(value, Int32Type, null);
1110if (sourceType == Int32Type) return ((long)(int)value);
1156if (sourceType == Int32Type) return XmlConvert.ToString((int)value);
1175if (destinationType == Int32Type) return DecimalToInt32((decimal)value);
1190if (destinationType == Int32Type) return ((int)value);
1205if (destinationType == Int32Type) return Int64ToInt32((long)value);
1221if (destinationType == Int32Type) return this.ToInt32((string)value);
1239if (destinationType == Int32Type) return this.ToInt32(value);
1245if (sourceType == Int32Type) return (new XmlAtomicValue(SchemaType, (int)value));
1253if (sourceType == Int32Type) return (new XmlAtomicValue(SchemaType, (int)value));
2543return (int)ChangeTypeWildcardDestination(value, Int32Type, null);
2647if (sourceType == Int32Type) return XmlConvert.ToString((int)value);
2762if (destinationType == Int32Type) return XmlConvert.ToInt32((string)value);
2819if (destinationType == Int32Type)
2934if (clrType == Int32Type) return true;
3143return (int)ChangeTypeWildcardDestination(value, Int32Type, null);
3309if (destinationType == Int32Type)
3332if (sourceType == Int32Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int)value));
3522if (itemTypeDst == Int32Type) return ToArray<int>(value, nsResolver);