35 references to XmlAtomicValue
System.Private.Xml (35)
System\Xml\Schema\XmlValueConverter.cs (27)
1021if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, value)); 1022if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, value)); 1087if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType!, value)); 1095if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType!, value)); 1303if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType!, value)); 1310if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType!, value)); 1535if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(SchemaType!, (DateTimeOffset)value)); 1542if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(SchemaType!, (DateTimeOffset)value)); 1878case XmlTypeCode.Base64Binary: return (new XmlAtomicValue(SchemaType!, value)); 1879case XmlTypeCode.HexBinary: return (new XmlAtomicValue(SchemaType!, value)); 1887case XmlTypeCode.DayTimeDuration: return (new XmlAtomicValue(SchemaType!, value)); 1888case XmlTypeCode.Duration: return (new XmlAtomicValue(SchemaType!, value)); 1889case XmlTypeCode.YearMonthDuration: return (new XmlAtomicValue(SchemaType!, value)); 1892if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return (new XmlAtomicValue(SchemaType!, value)); 2703if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value)); 2793if (sourceType == ByteType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedByte), value)); 2794if (sourceType == ByteArrayType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary), value)); 2796if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value)); 2797if (sourceType == DecimalType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value)); 2799if (sourceType == Int16Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Short), value)); 2802if (sourceType == SByteType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Byte), value)); 2803if (sourceType == SingleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value)); 2805if (sourceType == TimeSpanType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Duration), value)); 2806if (sourceType == UInt16Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value)); 2807if (sourceType == UInt32Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedInt), value)); 2808if (sourceType == UInt64Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedLong), value)); 2809if (IsDerivedFrom(sourceType, UriType)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), value));
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
5400XmlAtomicValue value = new XmlAtomicValue(ndLiteral.XmlType!.SchemaType, ExtractLiteralValue(ndLiteral));
System\Xml\Xsl\Runtime\XmlILStorageConverter.cs (4)
36return new XmlAtomicValue(runtime.GetXmlType(index).SchemaType, value); 71return new XmlAtomicValue(runtime.GetXmlType(index).SchemaType, value); 76return new XmlAtomicValue(runtime.GetXmlType(index).SchemaType, value); 81return new XmlAtomicValue(runtime.GetXmlType(index).SchemaType, value);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
636value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), value)); 647value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), value));
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
274return new XmlAtomicValue(destinationType.SchemaType, ToDecimal(value.ValueAsDouble));