51 references to GetBuiltInSimpleType
System.Data.SqlXml (12)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (4)
603
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean), value));
607
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), ((IConvertible) value).ToDouble(null)));
612
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), XsltConvert.ToString((DateTime) value)));
614
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), value));
System\Xml\Xsl\Runtime\XsltFunctions.cs (5)
190
case "version" : return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), 1.0);
191
case "vendor" : return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), "Microsoft");
192
case "vendor-url": return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), "http://www.microsoft.com");
196
return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), typeof(XsltLibrary).Assembly.ImageRuntimeVersion);
199
return new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), string.Empty);
System\Xml\Xsl\XmlQueryType.cs (1)
495
XmlSchemaType builtInType = XmlSchemaType.
GetBuiltInSimpleType
(baseType.TypeCode);
System\Xml\Xsl\XmlQueryTypeFactory.cs (2)
393
XmlSchemaType builtInType = XmlSchemaType.
GetBuiltInSimpleType
(typeCode);
427
if (schemaType == XmlSchemaType.
GetBuiltInSimpleType
(code)) {
System.ServiceModel (1)
System\ServiceModel\Description\MessageContractExporter.cs (1)
199
contentRestriction.BaseTypeName = XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Base64Binary).QualifiedName;
System.Xml (38)
System\Xml\Schema\DtdParser.cs (2)
723
attrDef.SchemaType = XmlSchemaType.
GetBuiltInSimpleType
( attrDef.Datatype.TypeCode );
796
attrDef.SchemaType = XmlSchemaType.
GetBuiltInSimpleType
( attrDef.Datatype.TypeCode );
System\Xml\Schema\DtdParserAsync.cs (2)
368
attrDef.SchemaType = XmlSchemaType.
GetBuiltInSimpleType
( attrDef.Datatype.TypeCode );
441
attrDef.SchemaType = XmlSchemaType.
GetBuiltInSimpleType
( attrDef.Datatype.TypeCode );
System\Xml\Schema\SchemaSetCompiler.cs (1)
289
if (simpleType == XmlSchemaType.
GetBuiltInSimpleType
(simpleType.TypeCode)) { //If it is a built-in simple type dont clean up
System\Xml\Schema\XmlSchemaValidator.cs (4)
2073
tempXsiTypeSO.SetAttributeType(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.QName));
2080
tempxsiNilSO.SetAttributeType(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean));
2084
XmlSchemaSimpleType stringType = XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String);
2092
XmlSchemaSimpleType stringType = XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String);
System\Xml\Schema\XmlValueConverter.cs (29)
288
schemaType = XmlSchemaType.
GetBuiltInSimpleType
(datatype.TypeCode);
2882
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean), (bool) value));
2891
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTime) value));
2900
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTimeOffset) value));
2909
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Decimal), value));
2918
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), (double) value));
2927
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Int), (int) value));
2936
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Long), (long) value));
2945
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Float), value));
2955
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), (string) value));
2993
if (sourceType == BooleanType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Boolean), (bool) value));
2994
if (sourceType == ByteType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedByte), value));
2995
if (sourceType == ByteArrayType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Base64Binary), value));
2996
if (sourceType == DateTimeType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTime) value));
2997
if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.DateTime), (DateTimeOffset) value));
2998
if (sourceType == DecimalType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Decimal), value));
2999
if (sourceType == DoubleType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Double), (double) value));
3000
if (sourceType == Int16Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Short), value));
3001
if (sourceType == Int32Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Int), (int) value));
3002
if (sourceType == Int64Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Long), (long) value));
3003
if (sourceType == SByteType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Byte), value));
3004
if (sourceType == SingleType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Float), value));
3005
if (sourceType == StringType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.String), (string) value));
3006
if (sourceType == TimeSpanType) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.Duration), value));
3007
if (sourceType == UInt16Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedShort), value));
3008
if (sourceType == UInt32Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedInt), value));
3009
if (sourceType == UInt64Type) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.UnsignedLong), value));
3010
if (IsDerivedFrom(sourceType, UriType)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.AnyUri), value));
3011
if (IsDerivedFrom(sourceType, XmlQualifiedNameType)) return (new XmlAtomicValue(XmlSchemaType.
GetBuiltInSimpleType
(XmlTypeCode.QName), value, nsResolver));