118 references to StringType
dotnet-svcutil-lib (118)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (118)
462public override string ToString(bool value) { return (string)ChangeType((object)value, StringType, null); } 463public override string ToString(DateTime value) { return (string)ChangeType((object)value, StringType, null); } 464public override string ToString(DateTimeOffset value) { return (string)ChangeType((object)value, StringType, null); } 465public override string ToString(decimal value) { return (string)ChangeType((object)value, StringType, null); } 466public override string ToString(double value) { return (string)ChangeType((object)value, StringType, null); } 467public override string ToString(int value) { return (string)ChangeType((object)value, StringType, null); } 468public override string ToString(long value) { return (string)ChangeType((object)value, StringType, null); } 469public override string ToString(float value) { return (string)ChangeType((object)value, StringType, null); } 470public override string ToString(string value, IXmlNamespaceResolver nsResolver) { return (string)ChangeType((object)value, StringType, nsResolver); } 471public override string ToString(object value, IXmlNamespaceResolver nsResolver) { return (string)ChangeType((object)value, StringType, nsResolver); } 1027if (sourceType == StringType) return this.ToDecimal((string)value); 1073if (sourceType == StringType) return this.ToInt32((string)value); 1112if (sourceType == StringType) return this.ToInt64((string)value); 1158if (sourceType == StringType) return ((string)value); 1161return (string)ChangeTypeWildcardDestination(value, StringType, nsResolver); 1177if (destinationType == StringType) return this.ToString((decimal)value); 1192if (destinationType == StringType) return XmlConvert.ToString((int)value); 1207if (destinationType == StringType) return XmlConvert.ToString((long)value); 1223if (destinationType == StringType) return ((string)value); 1241if (destinationType == StringType) return this.ToString(value, nsResolver); 1247if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 1255if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 1367if (sourceType == StringType) return this.ToDouble((string)value); 1415if (sourceType == StringType) return this.ToSingle((string)value); 1450if (sourceType == StringType) return ((string)value); 1453return (string)ChangeListType(value, StringType, nsResolver); 1468if (destinationType == StringType) return this.ToString((double)value); 1482if (destinationType == StringType) return this.ToString((float)value); 1497if (destinationType == StringType) return ((string)value); 1514if (destinationType == StringType) return this.ToString(value, nsResolver); 1519if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 1526if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 1593if (sourceType == StringType) return this.ToDateTime((string)value); 1638if (sourceType == StringType) return this.ToDateTimeOffset((string)value); 1727if (sourceType == StringType) return ((string)value); 1730return (string)ChangeListType(value, StringType, nsResolver); 1745if (destinationType == StringType) return this.ToString((DateTime)value); 1759if (destinationType == StringType) return this.ToString((DateTimeOffset)value); 1774if (destinationType == StringType) return ((string)value); 1791if (destinationType == StringType) return this.ToString(value, nsResolver); 1796if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 1803if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 1846if (sourceType == StringType) return XmlConvert.ToBoolean((string)value); 1916if (sourceType == StringType) return ((string)value); 1919return (string)ChangeListType(value, StringType, nsResolver); 1933if (destinationType == StringType) return XmlConvert.ToString((bool)value); 1947if (destinationType == StringType) return ((string)value); 1963if (destinationType == StringType) return this.ToString(value, nsResolver); 1967if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 1973if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 2068if (sourceType == StringType) return (string)value; 2088return (string)ChangeTypeWildcardDestination(value, StringType, nsResolver); 2118if (destinationType == StringType) return (string)value; 2152if (sourceType == StringType) 2163if (sourceType == StringType) 2180if (destinationType == StringType) return this.ToString(value, nsResolver); 2183if (sourceType == StringType) 2204if (sourceType == StringType) if (TypeCode == XmlTypeCode.AnyUri) return XmlConvert.ToUri((string)value); 2217if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value, nsResolver)); 2348if (sourceType == StringType) return ((string)value); 2351return (string)ChangeListType(value, StringType, nsResolver); 2365if (destinationType == StringType) return ((string)value); 2380if (destinationType == StringType) return this.ToString(value, nsResolver); 2383if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 2388if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 2406: base(atomicConverter, allowListToList ? StringArrayType : StringType) 2432if (sourceType == StringType) return XmlConvert.ToBoolean((string)value); 2454if (sourceType == StringType) return UntypedAtomicToDateTime((string)value); 2476if (sourceType == StringType) return UntypedAtomicToDateTimeOffset((string)value); 2497if (sourceType == StringType) return XmlConvert.ToDecimal((string)value); 2519if (sourceType == StringType) return XmlConvert.ToDouble((string)value); 2541if (sourceType == StringType) return XmlConvert.ToInt32((string)value); 2563if (sourceType == StringType) return XmlConvert.ToInt64((string)value); 2585if (sourceType == StringType) return XmlConvert.ToSingle((string)value); 2651if (sourceType == StringType) return ((string)value); 2657if (sourceType == XmlAtomicValueType) return ((string)((XmlAtomicValue)value).ValueAs(StringType, nsResolver)); 2660return (string)ChangeTypeWildcardDestination(value, StringType, nsResolver); 2673if (destinationType == StringType) return XmlConvert.ToString((bool)value); 2683if (destinationType == StringType) return DateTimeToString((DateTime)value); 2693if (destinationType == StringType) return DateTimeOffsetToString((DateTimeOffset)value); 2703if (destinationType == StringType) return XmlConvert.ToString((decimal)value); 2713if (destinationType == StringType) return XmlConvert.ToString((double)value); 2723if (destinationType == StringType) return XmlConvert.ToString((int)value); 2733if (destinationType == StringType) return XmlConvert.ToString((long)value); 2743if (destinationType == StringType) return XmlConvert.ToString((float)value); 2774if (destinationType == StringType) return ((string)value); 2789if (sourceType == StringType) return XmlConvert.ToBoolean((string)value); 2793if (sourceType == StringType) return Int32ToByte(XmlConvert.ToInt32((string)value)); 2797if (sourceType == StringType) return StringToBase64Binary((string)value); 2801if (sourceType == StringType) return UntypedAtomicToDateTime((string)value); 2805if (sourceType == StringType) return UntypedAtomicToDateTimeOffset((string)value); 2809if (sourceType == StringType) return XmlConvert.ToDecimal((string)value); 2813if (sourceType == StringType) return XmlConvert.ToDouble((string)value); 2817if (sourceType == StringType) return Int32ToInt16(XmlConvert.ToInt32((string)value)); 2821if (sourceType == StringType) return XmlConvert.ToInt32((string)value); 2825if (sourceType == StringType) return XmlConvert.ToInt64((string)value); 2829if (sourceType == StringType) return Int32ToSByte(XmlConvert.ToInt32((string)value)); 2833if (sourceType == StringType) return XmlConvert.ToSingle((string)value); 2837if (sourceType == StringType) return StringToDuration((string)value); 2841if (sourceType == StringType) return Int32ToUInt16(XmlConvert.ToInt32((string)value)); 2845if (sourceType == StringType) return Int64ToUInt32(XmlConvert.ToInt64((string)value)); 2849if (sourceType == StringType) return DecimalToUInt64(XmlConvert.ToDecimal((string)value)); 2853if (sourceType == StringType) return XmlConvert.ToUri((string)value); 2857if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 2862if (sourceType == StringType) return StringToQName((string)value, nsResolver); 2866if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value)); 2869if (destinationType == StringType) return this.ToString(value, nsResolver); 2910if ((this.atomicConverter == null) || (!_allowListToList && sourceType != StringType && destinationType != StringType)) 3336if (sourceType == StringType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string)value)); 3412if (!(value is IEnumerable) || value.GetType() == StringType || value.GetType() == ByteArrayType) 3486if (destinationType == StringType) 3489if (sourceType == StringType) 3498if (sourceType == StringType) 3526if (itemTypeDst == StringType) return ToArray<string>(value, nsResolver); 3557if (type == IListType || type == ICollectionType || type == IEnumerableType || type == StringType) 3720if (sourceType == StringType) 3722if (destinationType == StringType) return value;