360 references to TypeFlags
System.Xml (360)
System\Xml\Serialization\SoapSchemaImporter.cs (3)
296
TypeFlags
flags =
TypeFlags
.Reference;
297
if (type.IsAbstract) flags |=
TypeFlags
.Abstract;
System\Xml\Serialization\Types.cs (302)
84
TypeFlags
flags;
92
internal TypeDesc(string name, string fullName, XmlSchemaType dataType, TypeKind kind, TypeDesc baseTypeDesc,
TypeFlags
flags, string formatterName) {
111
internal TypeDesc(string name, string fullName, XmlSchemaType dataType, TypeKind kind, TypeDesc baseTypeDesc,
TypeFlags
flags)
114
internal TypeDesc(string name, string fullName, TypeKind kind, TypeDesc baseTypeDesc,
TypeFlags
flags)
117
internal TypeDesc(Type type, bool isXsdType, XmlSchemaType dataType, string formatterName,
TypeFlags
flags)
122
internal TypeDesc(Type type, string name, string fullName, TypeKind kind, TypeDesc baseTypeDesc,
TypeFlags
flags, TypeDesc arrayElementTypeDesc)
133
internal
TypeFlags
Flags {
183
get { return (flags &
TypeFlags
.Reference) == 0; }
187
get { return (flags &
TypeFlags
.CanBeAttributeValue) != 0; }
191
get { return (flags &
TypeFlags
.XmlEncodingNotRequired) != 0; }
195
get { return (flags &
TypeFlags
.CanBeElementValue) != 0; }
199
get { return (flags &
TypeFlags
.CanBeTextValue) != 0; }
208
get { return (flags &
TypeFlags
.Special) != 0; }
212
get { return (flags &
TypeFlags
.AmbiguousDataType) != 0; }
216
get { return (flags &
TypeFlags
.HasCustomFormatter) != 0; }
220
get { return (flags &
TypeFlags
.IgnoreDefault) == 0; }
224
get { return (flags &
TypeFlags
.HasIsEmpty) != 0; }
228
get { return (flags &
TypeFlags
.CollapseWhitespace) != 0; }
232
get { return (flags &
TypeFlags
.HasDefaultConstructor) != 0; }
236
get { return (flags &
TypeFlags
.Unsupported) != 0; }
240
get { return (flags &
TypeFlags
.GenericInterface) != 0; }
244
get { return (flags &
TypeFlags
.UsePrivateImplementation) != 0; }
252
get { return (flags &
TypeFlags
.Abstract) != 0; }
256
get { return (flags &
TypeFlags
.OptionalValue) != 0; }
260
get { return (flags &
TypeFlags
.UseReflection) != 0; }
308
get { return (flags &
TypeFlags
.CtorInaccessible) != 0; }
321
nullableTypeDesc = new TypeDesc("NullableOf" + this.name, "System.Nullable`1[" + this.fullName + "]", null, TypeKind.Struct, this, this.flags |
TypeFlags
.OptionalValue, this.formatterName);
344
flags |=
TypeFlags
.Unsupported;
364
arrayTypeDesc = new TypeDesc(null, name + "[]", fullName + "[]", TypeKind.Array, null,
TypeFlags
.Reference | (flags &
TypeFlags
.UseReflection), this);
452
AddPrimitive(typeof(string), "string", "String",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.Reference |
TypeFlags
.HasDefaultConstructor);
453
AddPrimitive(typeof(int), "int", "Int32",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
454
AddPrimitive(typeof(bool), "boolean", "Boolean",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
455
AddPrimitive(typeof(short), "short", "Int16",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
456
AddPrimitive(typeof(long), "long", "Int64",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
457
AddPrimitive(typeof(float), "float", "Single",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
458
AddPrimitive(typeof(double), "double", "Double",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
459
AddPrimitive(typeof(decimal), "decimal", "Decimal",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
460
AddPrimitive(typeof(DateTime), "dateTime", "DateTime",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
461
AddPrimitive(typeof(XmlQualifiedName), "QName", "XmlQualifiedName",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.HasIsEmpty |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.Reference);
462
AddPrimitive(typeof(byte), "unsignedByte", "Byte",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
463
AddPrimitive(typeof(SByte), "byte", "SByte",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
464
AddPrimitive(typeof(UInt16), "unsignedShort", "UInt16",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
465
AddPrimitive(typeof(UInt32), "unsignedInt", "UInt32",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
466
AddPrimitive(typeof(UInt64), "unsignedLong", "UInt64",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
469
AddPrimitive(typeof(DateTime), "date", "Date",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
470
AddPrimitive(typeof(DateTime), "time", "Time",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
472
AddPrimitive(typeof(string), "Name", "XmlName",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
473
AddPrimitive(typeof(string), "NCName", "XmlNCName",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
474
AddPrimitive(typeof(string), "NMTOKEN", "XmlNmToken",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
475
AddPrimitive(typeof(string), "NMTOKENS", "XmlNmTokens",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
477
AddPrimitive(typeof(byte[]), "base64Binary", "ByteArrayBase64",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference |
TypeFlags
.IgnoreDefault |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.HasDefaultConstructor);
478
AddPrimitive(typeof(byte[]), "hexBinary", "ByteArrayHex",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference |
TypeFlags
.IgnoreDefault |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.HasDefaultConstructor);
486
AddNonXsdPrimitive(typeof(Guid), "guid", UrtTypes.Namespace, "Guid", new XmlQualifiedName("string", XmlSchema.Namespace), new XmlSchemaFacet[] { guidPattern },
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.IgnoreDefault);
487
AddNonXsdPrimitive(typeof(char), "char", UrtTypes.Namespace, "Char", new XmlQualifiedName("unsignedShort", XmlSchema.Namespace), new XmlSchemaFacet[0],
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.IgnoreDefault);
490
AddNonXsdPrimitive(typeof(TimeSpan), "TimeSpan", UrtTypes.Namespace, "TimeSpan", new XmlQualifiedName("duration", XmlSchema.Namespace), new XmlSchemaFacet[0],
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
498
AddPrimitive(typeof(string), "normalizedString", "String",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.Reference |
TypeFlags
.HasDefaultConstructor);
500
AddPrimitive(typeof(string), unsupportedTypes[i], "String",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.Reference |
TypeFlags
.CollapseWhitespace);
543
AddSoapEncodedPrimitive(typeof(string), "normalizedString", ns, "String", new XmlQualifiedName("normalizedString", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.Reference |
TypeFlags
.HasDefaultConstructor);
545
AddSoapEncodedPrimitive(typeof(string), unsupportedTypes[i], ns, "String", new XmlQualifiedName(unsupportedTypes[i], XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.Reference |
TypeFlags
.CollapseWhitespace);
548
AddSoapEncodedPrimitive(typeof(string), "string", ns, "String", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.Reference);
549
AddSoapEncodedPrimitive(typeof(int), "int", ns, "Int32", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
550
AddSoapEncodedPrimitive(typeof(bool), "boolean", ns, "Boolean", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
551
AddSoapEncodedPrimitive(typeof(short), "short", ns, "Int16", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
552
AddSoapEncodedPrimitive(typeof(long), "long", ns, "Int64", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
553
AddSoapEncodedPrimitive(typeof(float), "float", ns, "Single", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
554
AddSoapEncodedPrimitive(typeof(double), "double", ns, "Double", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
555
AddSoapEncodedPrimitive(typeof(decimal), "decimal", ns, "Decimal", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
556
AddSoapEncodedPrimitive(typeof(DateTime), "dateTime", ns, "DateTime", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
557
AddSoapEncodedPrimitive(typeof(XmlQualifiedName), "QName", ns, "XmlQualifiedName", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.HasIsEmpty |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.Reference);
558
AddSoapEncodedPrimitive(typeof(byte), "unsignedByte", ns, "Byte", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
559
AddSoapEncodedPrimitive(typeof(SByte), "byte", ns, "SByte", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
560
AddSoapEncodedPrimitive(typeof(UInt16), "unsignedShort", ns, "UInt16", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
561
AddSoapEncodedPrimitive(typeof(UInt32), "unsignedInt", ns, "UInt32", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
562
AddSoapEncodedPrimitive(typeof(UInt64), "unsignedLong", ns, "UInt64", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
565
AddSoapEncodedPrimitive(typeof(DateTime), "date", ns, "Date", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
566
AddSoapEncodedPrimitive(typeof(DateTime), "time", ns, "Time", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
568
AddSoapEncodedPrimitive(typeof(string), "Name", ns, "XmlName", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
569
AddSoapEncodedPrimitive(typeof(string), "NCName", ns, "XmlNCName", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
570
AddSoapEncodedPrimitive(typeof(string), "NMTOKEN", ns, "XmlNmToken", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
571
AddSoapEncodedPrimitive(typeof(string), "NMTOKENS", ns, "XmlNmTokens", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
573
AddSoapEncodedPrimitive(typeof(byte[]), "base64Binary", ns, "ByteArrayBase64", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference |
TypeFlags
.IgnoreDefault |
TypeFlags
.XmlEncodingNotRequired);
574
AddSoapEncodedPrimitive(typeof(byte[]), "hexBinary", ns, "ByteArrayHex", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference |
TypeFlags
.IgnoreDefault |
TypeFlags
.XmlEncodingNotRequired);
576
AddSoapEncodedPrimitive(typeof(string), "arrayCoordinate", ns, "String", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue);
577
AddSoapEncodedPrimitive(typeof(byte[]), "base64", ns, "ByteArrayBase64", new XmlQualifiedName("base64Binary", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.IgnoreDefault |
TypeFlags
.Reference);
580
static void AddPrimitive(Type type, string dataTypeName, string formatterName,
TypeFlags
flags) {
590
static void AddNonXsdPrimitive(Type type, string dataTypeName, string ns, string formatterName, XmlQualifiedName baseTypeName, XmlSchemaFacet[] facets,
TypeFlags
flags) {
606
static void AddSoapEncodedPrimitive(Type type, string dataTypeName, string ns, string formatterName, XmlQualifiedName baseTypeName,
TypeFlags
flags) {
611
return GetTypeDesc(name, ns,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.CanBeAttributeValue);
614
internal TypeDesc GetTypeDesc(string name, string ns,
TypeFlags
flags) {
693
TypeFlags
flags = 0;
697
flags |=
TypeFlags
.Unsupported;
701
flags |=
TypeFlags
.Unsupported;
706
flags |=
TypeFlags
.UseReflection;
709
flags |=
TypeFlags
.Reference;
713
flags |=
TypeFlags
.HasDefaultConstructor;
717
flags |=
TypeFlags
.Unsupported;
728
flags |=
TypeFlags
.Special |
TypeFlags
.CanBeElementValue;
734
flags |=
TypeFlags
.Unsupported;
740
flags |=
TypeFlags
.HasDefaultConstructor;
752
flags |=
TypeFlags
.Unsupported;
764
flags |=
TypeFlags
.OptionalValue;
769
if (type.IsAbstract) flags |=
TypeFlags
.Abstract;
774
flags |=
TypeFlags
.Special |
TypeFlags
.CanBeAttributeValue;
779
flags |=
TypeFlags
.Special |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue;
781
flags &= ~
TypeFlags
.CanBeElementValue;
783
flags &= ~
TypeFlags
.CanBeTextValue;
785
flags |=
TypeFlags
.CanBeAttributeValue;
791
flags |=
TypeFlags
.Abstract;
796
flags |=
TypeFlags
.Unsupported;
808
flags |=
TypeFlags
.Unsupported;
920
TypeFlags
flags =
TypeFlags
.None;
1091
static
TypeFlags
GetConstructorFlags(Type type, ref Exception exception) {
1094
TypeFlags
flags =
TypeFlags
.HasDefaultConstructor;
1096
flags |=
TypeFlags
.CtorInaccessible;
1102
flags |=
TypeFlags
.CtorInaccessible;
1111
static Type GetEnumeratorElementType(Type type, ref
TypeFlags
flags) {
1122
flags |=
TypeFlags
.GenericInterface;
1131
flags |=
TypeFlags
.UsePrivateImplementation;
System\Xml\Serialization\XmlSchemaImporter.cs (55)
78
internal TypeMapping GetDefaultMapping(
TypeFlags
flags) {
132
TypeMapping typeMapping = ImportType(typeName, typeof(TypeMapping), baseType,
TypeFlags
.CanBeElementValue, true);
181
TypeMapping typeMapping = ImportType(typeName, typeof(MembersMapping), null,
TypeFlags
.CanBeElementValue, true);
340
mapping = ImportType(element.SchemaTypeName, desiredMappingType, baseType,
TypeFlags
.CanBeElementValue, false);
342
object type = FindType(element.SchemaTypeName,
TypeFlags
.CanBeElementValue);
352
mapping = ImportType((XmlSchemaComplexType)element.SchemaType, ns, identifier, desiredMappingType, baseType,
TypeFlags
.CanBeElementValue);
354
mapping = ImportDataType((XmlSchemaSimpleType)element.SchemaType, ns, identifier, baseType,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeTextValue, false);
372
RunSchemaExtensions(mapping, element.SchemaTypeName, element.SchemaType, element,
TypeFlags
.CanBeElementValue);
377
void RunSchemaExtensions(TypeMapping mapping, XmlQualifiedName qname, XmlSchemaType type, XmlSchemaObject context,
TypeFlags
flags) {
391
typeName = FindExtendedAnyElement((XmlSchemaAny)context, ((flags &
TypeFlags
.CanBeTextValue) != 0), compileUnit, mainNamespace, out typeOwner);
456
ImportType(type.QualifiedName, typeof(TypeMapping), null,
TypeFlags
.CanBeElementValue, false);
463
TypeMapping ImportType(XmlQualifiedName name, Type desiredMappingType, Type baseType,
TypeFlags
flags, bool addref) {
488
TypeMapping ImportType(XmlSchemaComplexType type, string typeNs, string identifier, Type desiredMappingType, Type baseType,
TypeFlags
flags) {
534
baseMapping = ImportType(type.DerivedFrom, typeof(TypeMapping), null,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue, false);
573
TypeFlags
flags =
TypeFlags
.Reference;
576
flags |=
TypeFlags
.Abstract;
627
TypeFlags
flags =
TypeFlags
.Reference;
658
t = FindType(t.DerivedFrom,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue);
1056
mapping = ImportType(simpleContentType, typeof(TypeMapping), null,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue, false);
1064
mapping = GetDefaultMapping(
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue);
1130
TypeFlags
flags =
TypeFlags
.CanBeElementValue;
1132
flags |=
TypeFlags
.CanBeTextValue;
1307
TypeFlags
flags =
TypeFlags
.CanBeElementValue;
1309
flags |=
TypeFlags
.CanBeTextValue;
1344
accessor.Mapping = GetDefaultMapping(
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue);
1501
mapping = (TypeMapping)ImportType(attribute.SchemaTypeName, typeof(TypeMapping), null,
TypeFlags
.CanBeAttributeValue, false);
1503
mapping = ImportDataType((XmlSchemaSimpleType)attribute.SchemaType, ns, identifier, null,
TypeFlags
.CanBeAttributeValue, false);
1505
mapping = GetDefaultMapping(
TypeFlags
.CanBeAttributeValue);
1510
RunSchemaExtensions(mapping, attribute.SchemaTypeName, attribute.SchemaType, attribute,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeTextValue);
1540
TypeMapping ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType,
TypeFlags
flags, bool isList) {
1578
mapping = ImportType(list.ItemTypeName, typeof(TypeMapping), null,
TypeFlags
.CanBeAttributeValue, true);
1590
TypeMapping ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier,
TypeFlags
flags, bool isList) {
1597
sourceType = FindType(sourceType.DerivedFrom,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeAttributeValue);
1636
mapping = GetDefaultMapping(
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.CanBeAttributeValue);
1679
PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType,
TypeFlags
flags) {
1688
PrimitiveMapping ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string ns,
TypeFlags
flags) {
1735
TypeDesc GetDataTypeSource(XmlSchemaSimpleType dataType,
TypeFlags
flags) {
1750
XmlSchemaSimpleType FindDataType(XmlQualifiedName name,
TypeFlags
flags) {
1773
XmlSchemaType FindType(XmlQualifiedName name,
TypeFlags
flags) {