48 references to GetBuiltInSimpleType
System.Private.Xml (48)
System\Xml\Schema\DtdParser.cs (2)
764
attrDef.SchemaType = XmlSchemaType.
GetBuiltInSimpleType
(attrDef.Datatype.TypeCode);
844
attrDef.SchemaType = XmlSchemaType.
GetBuiltInSimpleType
(attrDef.Datatype.TypeCode);
System\Xml\Schema\DtdParserAsync.cs (2)
408
attrDef.SchemaType = XmlSchemaType.
GetBuiltInSimpleType
(attrDef.Datatype.TypeCode);
488
attrDef.SchemaType = XmlSchemaType.
GetBuiltInSimpleType
(attrDef.Datatype.TypeCode);
System\Xml\Schema\SchemaSetCompiler.cs (1)
371
if (simpleType == XmlSchemaType.
GetBuiltInSimpleType
(simpleType.TypeCode))
System\Xml\Schema\XmlSchemaValidator.cs (4)
2479
tempXsiTypeSO.SetAttributeType(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.QName));
2487
tempxsiNilSO.SetAttributeType(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean));
2492
XmlSchemaSimpleType stringType = XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String);
2501
XmlSchemaSimpleType stringType = XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String);
System\Xml\Schema\XmlValueConverter.cs (27)
241
schemaType ??= XmlSchemaType.
GetBuiltInSimpleType
(datatype.TypeCode); //Did not find any simple type in the parent chain
2683
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean), (bool)value));
2693
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTime)value));
2703
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Decimal), value));
2713
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), (double)value));
2723
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Int), (int)value));
2733
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Long), (long)value));
2744
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), (string)value));
2792
if (sourceType == BooleanType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean), (bool)value));
2793
if (sourceType == ByteType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedByte), value));
2794
if (sourceType == ByteArrayType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Base64Binary), value));
2795
if (sourceType == DateTimeType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTime)value));
2796
if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTimeOffset)value));
2797
if (sourceType == DecimalType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Decimal), value));
2798
if (sourceType == DoubleType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), (double)value));
2799
if (sourceType == Int16Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Short), value));
2800
if (sourceType == Int32Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Int), (int)value));
2801
if (sourceType == Int64Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Long), (long)value));
2802
if (sourceType == SByteType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Byte), value));
2803
if (sourceType == SingleType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Float), value));
2804
if (sourceType == StringType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), (string)value));
2805
if (sourceType == TimeSpanType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Duration), value));
2806
if (sourceType == UInt16Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedShort), value));
2807
if (sourceType == UInt32Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedInt), value));
2808
if (sourceType == UInt64Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedLong), value));
2809
if (IsDerivedFrom(sourceType, UriType)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.AnyUri), value));
2810
if (IsDerivedFrom(sourceType, XmlQualifiedNameType)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.QName), value, nsResolver));
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (4)
636
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean), value));
640
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), ((IConvertible)value).ToDouble(null)));
645
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), XsltConvert.ToString((DateTime)value)));
647
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), value));
System\Xml\Xsl\Runtime\XsltFunctions.cs (5)
221
case "version": return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), 1.0);
222
case "vendor": return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), "Microsoft");
223
case "vendor-url": return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), "http://www.microsoft.com");
229
return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), typeof(XsltLibrary).Assembly.ImageRuntimeVersion);
232
return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), string.Empty);
System\Xml\Xsl\XmlQueryType.cs (1)
499
XmlSchemaType builtInType = XmlSchemaType.
GetBuiltInSimpleType
(baseType.TypeCode);
System\Xml\Xsl\XmlQueryTypeFactory.cs (2)
404
XmlSchemaType builtInType = XmlSchemaType.
GetBuiltInSimpleType
(typeCode);
441
if (schemaType == XmlSchemaType.
GetBuiltInSimpleType
(code))