System\Xml\Schema\XmlValueConverter.cs (27)
363public override long ToInt64(bool value) { return (long)ChangeType((object)value, Int64Type, null); }
364public override long ToInt64(DateTime value) { return (long)ChangeType((object)value, Int64Type, null); }
365public override long ToInt64(double value) { return (long)ChangeType((object)value, Int64Type, null); }
366public override long ToInt64(int value) { return (long)ChangeType((object)value, Int64Type, null); }
367public override long ToInt64(string value) { return (long)ChangeType((object)value, Int64Type, null); }
368public override long ToInt64(object value) { return (long)ChangeType((object)value, Int64Type, null); }
910if (sourceType == Int64Type) return ((decimal)(long)value);
935if (sourceType == Int64Type) return Int64ToInt32((long)value);
960if (sourceType == Int64Type) return ((long)value);
964return (long)ChangeTypeWildcardDestination(value, Int64Type, null);
1000if (sourceType == Int64Type) return XmlConvert.ToString((long)value);
1019if (destinationType == Int64Type) return DecimalToInt64((decimal)value);
1034if (destinationType == Int64Type) return ((long)(int)value);
1049if (destinationType == Int64Type) return ((long)value);
1065if (destinationType == Int64Type) return this.ToInt64((string)value);
1083if (destinationType == Int64Type) return this.ToInt64(value);
1089if (sourceType == Int64Type) return (new XmlAtomicValue(SchemaType!, (long)value));
1097if (sourceType == Int64Type) return (new XmlAtomicValue(SchemaType!, (long)value));
2171return (long)ChangeTypeWildcardDestination(value, Int64Type, null);
2248if (sourceType == Int64Type) return XmlConvert.ToString((long)value);
2343if (destinationType == Int64Type) return XmlConvert.ToInt64((string)value);
2403if (destinationType == Int64Type)
2515if (clrType == Int64Type) return true;
2647return (long)ChangeTypeWildcardDestination(value, Int64Type, null);
2781if (destinationType == Int64Type)
2801if (sourceType == Int64Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long)value));
2991if (itemTypeDst == Int64Type) return ToArray<long>(value, nsResolver);