35 references to XmlAtomicValue
System.Private.Xml (35)
System\Xml\Schema\XmlValueConverter.cs (27)
988if (destinationType == typeof(XmlAtomicValue)) return (new XmlAtomicValue(SchemaType!, value)); 989if (destinationType == typeof(XPathItem)) return (new XmlAtomicValue(SchemaType!, value)); 1054if (sourceType == typeof(decimal)) return (new XmlAtomicValue(SchemaType!, value)); 1062if (sourceType == typeof(decimal)) return (new XmlAtomicValue(SchemaType!, value)); 1270if (sourceType == typeof(float)) return (new XmlAtomicValue(SchemaType!, value)); 1277if (sourceType == typeof(float)) return (new XmlAtomicValue(SchemaType!, value)); 1502if (sourceType == typeof(DateTimeOffset)) return (new XmlAtomicValue(SchemaType!, (DateTimeOffset)value)); 1509if (sourceType == typeof(DateTimeOffset)) return (new XmlAtomicValue(SchemaType!, (DateTimeOffset)value)); 1845case XmlTypeCode.Base64Binary: return (new XmlAtomicValue(SchemaType!, value)); 1846case XmlTypeCode.HexBinary: return (new XmlAtomicValue(SchemaType!, value)); 1854case XmlTypeCode.DayTimeDuration: return (new XmlAtomicValue(SchemaType!, value)); 1855case XmlTypeCode.Duration: return (new XmlAtomicValue(SchemaType!, value)); 1856case XmlTypeCode.YearMonthDuration: return (new XmlAtomicValue(SchemaType!, value)); 1859if (IsDerivedFrom(sourceType, typeof(Uri))) if (TypeCode == XmlTypeCode.AnyUri) return (new XmlAtomicValue(SchemaType!, value)); 2670if (destinationType == typeof(XmlAtomicValue)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value)); 2760if (sourceType == typeof(byte)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedByte), value)); 2761if (sourceType == typeof(byte[])) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary), value)); 2763if (sourceType == typeof(DateTimeOffset)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value)); 2764if (sourceType == typeof(decimal)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value)); 2766if (sourceType == typeof(short)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Short), value)); 2769if (sourceType == typeof(sbyte)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Byte), value)); 2770if (sourceType == typeof(float)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value)); 2772if (sourceType == typeof(TimeSpan)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Duration), value)); 2773if (sourceType == typeof(ushort)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value)); 2774if (sourceType == typeof(uint)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedInt), value)); 2775if (sourceType == typeof(ulong)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedLong), value)); 2776if (IsDerivedFrom(sourceType, typeof(Uri))) 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));