113 references to StringType
System.Private.Xml (113)
System\Xml\Schema\XmlValueConverter.cs (113)
373public override string ToString(bool value) { return (string)ChangeType((object)value, StringType, null); } 374public override string ToString(DateTime value) { return (string)ChangeType((object)value, StringType, null); } 375public override string ToString(DateTimeOffset value) { return (string)ChangeType((object)value, StringType, null); } 376public override string ToString(decimal value) { return (string)ChangeType((object)value, StringType, null); } 377public override string ToString(double value) { return (string)ChangeType((object)value, StringType, null); } 378public override string ToString(int value) { return (string)ChangeType((object)value, StringType, null); } 379public override string ToString(long value) { return (string)ChangeType((object)value, StringType, null); } 380public override string ToString(float value) { return (string)ChangeType((object)value, StringType, null); } 381public override string ToString(object value, IXmlNamespaceResolver? nsResolver) { return (string)ChangeType((object)value, StringType, nsResolver); } 911if (sourceType == StringType) return this.ToDecimal((string)value); 936if (sourceType == StringType) return this.ToInt32((string)value); 961if (sourceType == StringType) return this.ToInt64((string)value); 1001if (sourceType == StringType) return ((string)value); 1004return (string)ChangeTypeWildcardDestination(value, StringType, nsResolver); 1020if (destinationType == StringType) return this.ToString((decimal)value); 1035if (destinationType == StringType) return XmlConvert.ToString((int)value); 1050if (destinationType == StringType) return XmlConvert.ToString((long)value); 1066if (destinationType == StringType) return ((string)value); 1084if (destinationType == StringType) return this.ToString(value, nsResolver); 1090if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 1098if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 1176if (sourceType == StringType) return this.ToDouble((string)value); 1220if (sourceType == StringType) return this.ToSingle((string)value); 1249if (sourceType == StringType) return ((string)value); 1252return (string)ChangeListType(value, StringType, nsResolver); 1267if (destinationType == StringType) return this.ToString((double)value); 1282if (destinationType == StringType) return ((string)value); 1299if (destinationType == StringType) return this.ToString(value, nsResolver); 1304if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 1311if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 1362if (sourceType == StringType) return this.ToDateTime((string)value); 1402if (sourceType == StringType) return this.ToDateTimeOffset((string)value); 1481if (sourceType == StringType) return ((string)value); 1484return (string)ChangeListType(value, StringType, nsResolver); 1499if (destinationType == StringType) return this.ToString((DateTime)value); 1514if (destinationType == StringType) return ((string)value); 1531if (destinationType == StringType) return this.ToString(value, nsResolver); 1536if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 1543if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 1577if (sourceType == StringType) return XmlConvert.ToBoolean((string)value); 1641if (sourceType == StringType) return ((string)value); 1644return (string)ChangeListType(value, StringType, nsResolver); 1658if (destinationType == StringType) return XmlConvert.ToString((bool)value); 1672if (destinationType == StringType) return ((string)value); 1688if (destinationType == StringType) return this.ToString(value, nsResolver); 1692if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 1698if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 1733if (sourceType == StringType) return (string)value; 1753return (string)ChangeTypeWildcardDestination(value, StringType, nsResolver); 1783if (destinationType == StringType) return (string)value; 1817if (sourceType == StringType) 1828if (sourceType == StringType) 1845if (destinationType == StringType) return this.ToString(value, nsResolver); 1848if (sourceType == StringType) 1869if (sourceType == StringType) if (TypeCode == XmlTypeCode.AnyUri) return XmlConvert.ToUri((string)value); 1882if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value, nsResolver)); 1954if (sourceType == StringType) return ((string)value); 1957return (string)ChangeListType(value, StringType, nsResolver); 1971if (destinationType == StringType) return ((string)value); 1986if (destinationType == StringType) return this.ToString(value, nsResolver); 1989if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 1994if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 2012: base(atomicConverter, allowListToList ? StringArrayType : StringType, allowListToList ? StringArrayArrayType : StringArrayType) 2038if (sourceType == StringType) return XmlConvert.ToBoolean((string)value); 2060if (sourceType == StringType) return UntypedAtomicToDateTime((string)value); 2082if (sourceType == StringType) return UntypedAtomicToDateTimeOffset((string)value); 2103if (sourceType == StringType) return XmlConvert.ToDecimal((string)value); 2125if (sourceType == StringType) return XmlConvert.ToDouble((string)value); 2147if (sourceType == StringType) return XmlConvert.ToInt32((string)value); 2169if (sourceType == StringType) return XmlConvert.ToInt64((string)value); 2191if (sourceType == StringType) return XmlConvert.ToSingle((string)value); 2251if (sourceType == StringType) return ((string)value); 2257if (sourceType == XmlAtomicValueType) return ((string)((XmlAtomicValue)value).ValueAs(StringType, nsResolver)); 2260return (string)ChangeTypeWildcardDestination(value, StringType, nsResolver); 2273if (destinationType == StringType) return XmlConvert.ToString((bool)value); 2283if (destinationType == StringType) return DateTimeToString((DateTime)value); 2293if (destinationType == StringType) return XmlConvert.ToString((decimal)value); 2303if (destinationType == StringType) return XmlConvert.ToString((double)value); 2313if (destinationType == StringType) return XmlConvert.ToString((int)value); 2323if (destinationType == StringType) return XmlConvert.ToString((long)value); 2354if (destinationType == StringType) return ((string)value); 2369if (sourceType == StringType) return XmlConvert.ToBoolean((string)value); 2373if (sourceType == StringType) return Int32ToByte(XmlConvert.ToInt32((string)value)); 2377if (sourceType == StringType) return StringToBase64Binary((string)value); 2381if (sourceType == StringType) return UntypedAtomicToDateTime((string)value); 2385if (sourceType == StringType) return UntypedAtomicToDateTimeOffset((string)value); 2389if (sourceType == StringType) return XmlConvert.ToDecimal((string)value); 2393if (sourceType == StringType) return XmlConvert.ToDouble((string)value); 2397if (sourceType == StringType) return Int32ToInt16(XmlConvert.ToInt32((string)value)); 2401if (sourceType == StringType) return XmlConvert.ToInt32((string)value); 2405if (sourceType == StringType) return XmlConvert.ToInt64((string)value); 2409if (sourceType == StringType) return Int32ToSByte(XmlConvert.ToInt32((string)value)); 2413if (sourceType == StringType) return XmlConvert.ToSingle((string)value); 2417if (sourceType == StringType) return StringToDuration((string)value); 2421if (sourceType == StringType) return Int32ToUInt16(XmlConvert.ToInt32((string)value)); 2425if (sourceType == StringType) return Int64ToUInt32(XmlConvert.ToInt64((string)value)); 2429if (sourceType == StringType) return DecimalToUInt64(XmlConvert.ToDecimal((string)value)); 2433if (sourceType == StringType) return XmlConvert.ToUri((string)value); 2437if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 2442if (sourceType == StringType) return StringToQName((string)value, nsResolver); 2446if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value)); 2449if (destinationType == StringType) return this.ToString(value, nsResolver); 2490if ((this.atomicConverter == null) || (!_allowListToList && sourceType != StringType && destinationType != StringType)) 2804if (sourceType == StringType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string)value)); 2880if (!(value is IEnumerable) || value.GetType() == StringType || value.GetType() == ByteArrayType) 2954if (destinationType == StringType) 2957if (sourceType == StringType) 2966if (sourceType == StringType) 2994if (itemTypeDst == StringType) return ToArray<string>(value, nsResolver); 3025if (type == IListType || type == ICollectionType || type == IEnumerableType || type == StringType) 3188if (sourceType == StringType) 3190if (destinationType == StringType) return value;