55 references to ValueConverter
System.Private.Xml (55)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
4179return xsst.ValueConverter;
System\Xml\Core\XsdValidatingReader.cs (22)
469return xmlType.ValueConverter.ToBoolean(typedValue); 503return xmlType.ValueConverter.ToDateTime(typedValue); 537return xmlType.ValueConverter.ToDouble(typedValue); 571return xmlType.ValueConverter.ToSingle(typedValue); 605return xmlType.ValueConverter.ToDecimal(typedValue); 639return xmlType.ValueConverter.ToInt32(typedValue); 674return xmlType.ValueConverter.ToInt64(typedValue); 709return xmlType.ValueConverter.ToString(typedValue); 751return xmlType.ValueConverter.ChangeType(typedValue, returnType); 797return xmlType.ValueConverter.ToBoolean(typedValue!); 832return xmlType.ValueConverter.ToDateTime(typedValue!); 867return xmlType.ValueConverter.ToDouble(typedValue!); 902return xmlType.ValueConverter.ToSingle(typedValue!); 937return xmlType.ValueConverter.ToDecimal(typedValue!); 972return xmlType.ValueConverter.ToInt32(typedValue!); 1007return xmlType.ValueConverter.ToInt64(typedValue!); 1042return xmlType.ValueConverter.ToString(typedValue); 1085return xmlType.ValueConverter.ChangeType(typedValue!, returnType, namespaceResolver); 2141_cachingReader.RecordTextNode(_xmlSchemaInfo.XmlType!.ValueConverter.ToString(_atomicValue), _originalAtomicValueString, depth + 1, 0, 0); 2627_cachingReader.SwitchTextNodeAndEndElement(_xmlSchemaInfo.XmlType!.ValueConverter.ToString(_atomicValue), _originalAtomicValueString); 2682_cachingReader.SwitchTextNodeAndEndElement(_xmlSchemaInfo.XmlType!.ValueConverter.ToString(_atomicValue!), _originalAtomicValueString); 2730typedValue = xmlType.ValueConverter.ChangeType(typedValue, xmlType.Datatype.ValueType, _thisNSResolver);
System\Xml\Core\XsdValidatingReaderAsync.cs (5)
54return xmlType.ValueConverter.ToString(typedValue); 101return xmlType.ValueConverter.ChangeType(typedValue, returnType); 152return xmlType.ValueConverter.ToString(typedValue); 201return xmlType.ValueConverter.ChangeType(typedValue, returnType, namespaceResolver); 639_cachingReader.RecordTextNode(_xmlSchemaInfo.XmlType!.ValueConverter.ToString(_atomicValue), _originalAtomicValueString, depth + 1, 0, 0);
System\Xml\Schema\DataTypeImplementation.cs (1)
940return XmlListConverter.Create(listItemType.ValueConverter);
System\Xml\Schema\XmlAtomicValue.cs (8)
220XmlValueConverter valueConverter = _xmlType.ValueConverter; 242XmlValueConverter valueConverter = _xmlType.ValueConverter; 265XmlValueConverter valueConverter = _xmlType.ValueConverter; 289XmlValueConverter valueConverter = _xmlType.ValueConverter; 312XmlValueConverter valueConverter = _xmlType.ValueConverter; 335XmlValueConverter valueConverter = _xmlType.ValueConverter; 356XmlValueConverter valueConverter = _xmlType.ValueConverter; 381XmlValueConverter valueConverter = _xmlType.ValueConverter;
System\Xml\Schema\XmlSchemaValidator.cs (1)
1076attrData.RawValue = attSchemaInfo.XmlType!.ValueConverter.ToString(attrValidInfo.typedAttributeValue);
System\Xml\Schema\XmlValueConverter.cs (2)
3152_converters[i] = memberTypes[i].ValueConverter; 3195return simpleValue.XmlType.ValueConverter.ChangeType((string)value, destinationType, nsResolver);
System\Xml\XPath\XPathNavigator.cs (15)
87return schemaType.ValueConverter.ChangeType(Value, datatype.ValueType, this); 99return schemaType.ValueConverter.ChangeType(datatype.ParseValue(Value, NameTable, this), datatype.ValueType, this); 127value = schemaType.ValueConverter.ToString(typedValue, this); 188return schemaType.ValueConverter.ToBoolean(Value); 199return schemaType.ValueConverter.ToBoolean(datatype.ParseValue(Value, NameTable, this)); 222return schemaType.ValueConverter.ToDateTime(Value); 233return schemaType.ValueConverter.ToDateTime(datatype.ParseValue(Value, NameTable, this)); 256return schemaType.ValueConverter.ToDouble(Value); 267return schemaType.ValueConverter.ToDouble(datatype.ParseValue(Value, NameTable, this)); 290return schemaType.ValueConverter.ToInt32(Value); 301return schemaType.ValueConverter.ToInt32(datatype.ParseValue(Value, NameTable, this)); 324return schemaType.ValueConverter.ToInt64(Value); 335return schemaType.ValueConverter.ToInt64(datatype.ParseValue(Value, NameTable, this)); 357return schemaType.ValueConverter.ChangeType(Value, returnType, nsResolver); 368return schemaType.ValueConverter.ChangeType(datatype.ParseValue(Value, NameTable, nsResolver), returnType, nsResolver);