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)
2481
tempXsiTypeSO.SetAttributeType(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.QName));
2489
tempxsiNilSO.SetAttributeType(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean));
2494
XmlSchemaSimpleType stringType = XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String);
2503
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
2650
if (destinationType == typeof(XmlAtomicValue)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean), (bool)value));
2660
if (destinationType == typeof(XmlAtomicValue)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTime)value));
2670
if (destinationType == typeof(XmlAtomicValue)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Decimal), value));
2680
if (destinationType == typeof(XmlAtomicValue)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), (double)value));
2690
if (destinationType == typeof(XmlAtomicValue)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Int), (int)value));
2700
if (destinationType == typeof(XmlAtomicValue)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Long), (long)value));
2711
if (destinationType == typeof(XmlAtomicValue)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), (string)value));
2759
if (sourceType == typeof(bool)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean), (bool)value));
2760
if (sourceType == typeof(byte)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedByte), value));
2761
if (sourceType == typeof(byte[])) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Base64Binary), value));
2762
if (sourceType == typeof(DateTime)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTime)value));
2763
if (sourceType == typeof(DateTimeOffset)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTimeOffset)value));
2764
if (sourceType == typeof(decimal)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Decimal), value));
2765
if (sourceType == typeof(double)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), (double)value));
2766
if (sourceType == typeof(short)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Short), value));
2767
if (sourceType == typeof(int)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Int), (int)value));
2768
if (sourceType == typeof(long)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Long), (long)value));
2769
if (sourceType == typeof(sbyte)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Byte), value));
2770
if (sourceType == typeof(float)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Float), value));
2771
if (sourceType == typeof(string)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), (string)value));
2772
if (sourceType == typeof(TimeSpan)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Duration), value));
2773
if (sourceType == typeof(ushort)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedShort), value));
2774
if (sourceType == typeof(uint)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedInt), value));
2775
if (sourceType == typeof(ulong)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedLong), value));
2776
if (IsDerivedFrom(sourceType, typeof(Uri))) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.AnyUri), value));
2777
if (IsDerivedFrom(sourceType, typeof(XmlQualifiedName))) 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))