357 references to TypeFlags
dotnet-svcutil-lib (357)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (3)
325
TypeFlags
flags =
TypeFlags
.Reference;
326
if (type.IsAbstract) flags |=
TypeFlags
.Abstract;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (299)
84
private
TypeFlags
_flags;
92
internal TypeDesc(string name, string fullName, XmlSchemaType dataType, TypeKind kind, TypeDesc baseTypeDesc,
TypeFlags
flags, string formatterName)
112
internal TypeDesc(string name, string fullName, XmlSchemaType dataType, TypeKind kind, TypeDesc baseTypeDesc,
TypeFlags
flags)
115
internal TypeDesc(string name, string fullName, TypeKind kind, TypeDesc baseTypeDesc,
TypeFlags
flags)
118
internal TypeDesc(Type type, bool isXsdType, XmlSchemaType dataType, string formatterName,
TypeFlags
flags)
124
internal TypeDesc(Type type, string name, string fullName, TypeKind kind, TypeDesc baseTypeDesc,
TypeFlags
flags, TypeDesc arrayElementTypeDesc)
136
internal
TypeFlags
Flags
200
get { return (_flags &
TypeFlags
.Reference) == 0; }
205
get { return (_flags &
TypeFlags
.CanBeAttributeValue) != 0; }
210
get { return (_flags &
TypeFlags
.XmlEncodingNotRequired) != 0; }
215
get { return (_flags &
TypeFlags
.CanBeElementValue) != 0; }
220
get { return (_flags &
TypeFlags
.CanBeTextValue) != 0; }
231
get { return (_flags &
TypeFlags
.Special) != 0; }
236
get { return (_flags &
TypeFlags
.AmbiguousDataType) != 0; }
241
get { return (_flags &
TypeFlags
.HasCustomFormatter) != 0; }
246
get { return (_flags &
TypeFlags
.IgnoreDefault) == 0; }
251
get { return (_flags &
TypeFlags
.HasIsEmpty) != 0; }
256
get { return (_flags &
TypeFlags
.CollapseWhitespace) != 0; }
261
get { return (_flags &
TypeFlags
.HasDefaultConstructor) != 0; }
266
get { return (_flags &
TypeFlags
.Unsupported) != 0; }
271
get { return (_flags &
TypeFlags
.GenericInterface) != 0; }
276
get { return (_flags &
TypeFlags
.UsePrivateImplementation) != 0; }
286
get { return (_flags &
TypeFlags
.Abstract) != 0; }
291
get { return (_flags &
TypeFlags
.OptionalValue) != 0; }
296
get { return (_flags &
TypeFlags
.UseReflection) != 0; }
356
get { return (_flags &
TypeFlags
.CtorInaccessible) != 0; }
372
_nullableTypeDesc = new TypeDesc("NullableOf" + _name, "System.Nullable`1[" + _fullName + "]", null, TypeKind.Struct, this, _flags |
TypeFlags
.OptionalValue, _formatterName);
401
_flags |=
TypeFlags
.Unsupported;
425
_arrayTypeDesc = new TypeDesc(null, _name + "[]", _fullName + "[]", TypeKind.Array, null,
TypeFlags
.Reference | (_flags &
TypeFlags
.UseReflection), this);
525
AddPrimitive(typeof(string), "string", "String",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.Reference |
TypeFlags
.HasDefaultConstructor);
526
AddPrimitive(typeof(int), "int", "Int32",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
527
AddPrimitive(typeof(bool), "boolean", "Boolean",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
528
AddPrimitive(typeof(short), "short", "Int16",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
529
AddPrimitive(typeof(long), "long", "Int64",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
530
AddPrimitive(typeof(float), "float", "Single",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
531
AddPrimitive(typeof(double), "double", "Double",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
532
AddPrimitive(typeof(decimal), "decimal", "Decimal",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
533
AddPrimitive(typeof(DateTime), "dateTime", "DateTime",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
534
AddPrimitive(typeof(XmlQualifiedName), "QName", "XmlQualifiedName",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.HasIsEmpty |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.Reference);
535
AddPrimitive(typeof(byte), "unsignedByte", "Byte",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
536
AddPrimitive(typeof(SByte), "byte", "SByte",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
537
AddPrimitive(typeof(UInt16), "unsignedShort", "UInt16",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
538
AddPrimitive(typeof(UInt32), "unsignedInt", "UInt32",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
539
AddPrimitive(typeof(UInt64), "unsignedLong", "UInt64",
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
542
AddPrimitive(typeof(DateTime), "date", "Date",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
543
AddPrimitive(typeof(DateTime), "time", "Time",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
545
AddPrimitive(typeof(string), "Name", "XmlName",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
546
AddPrimitive(typeof(string), "NCName", "XmlNCName",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
547
AddPrimitive(typeof(string), "NMTOKEN", "XmlNmToken",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
548
AddPrimitive(typeof(string), "NMTOKENS", "XmlNmTokens",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
550
AddPrimitive(typeof(byte[]), "base64Binary", "ByteArrayBase64",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference |
TypeFlags
.IgnoreDefault |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.HasDefaultConstructor);
551
AddPrimitive(typeof(byte[]), "hexBinary", "ByteArrayHex",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference |
TypeFlags
.IgnoreDefault |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.HasDefaultConstructor);
559
AddNonXsdPrimitive(typeof(Guid), "guid", UrtTypes.Namespace, "Guid", new XmlQualifiedName("string", XmlSchema.Namespace), new XmlSchemaFacet[] { guidPattern },
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.IgnoreDefault);
560
AddNonXsdPrimitive(typeof(char), "char", UrtTypes.Namespace, "Char", new XmlQualifiedName("unsignedShort", XmlSchema.Namespace), new XmlSchemaFacet[0],
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.IgnoreDefault);
567
AddPrimitive(typeof(string), "normalizedString", "String",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.Reference |
TypeFlags
.HasDefaultConstructor);
570
AddPrimitive(typeof(string), s_unsupportedTypes[i], "String",
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.Reference |
TypeFlags
.CollapseWhitespace);
615
AddSoapEncodedPrimitive(typeof(string), "normalizedString", ns, "String", new XmlQualifiedName("normalizedString", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.Reference |
TypeFlags
.HasDefaultConstructor);
618
AddSoapEncodedPrimitive(typeof(string), s_unsupportedTypes[i], ns, "String", new XmlQualifiedName(s_unsupportedTypes[i], XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.Reference |
TypeFlags
.CollapseWhitespace);
621
AddSoapEncodedPrimitive(typeof(string), "string", ns, "String", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.Reference);
622
AddSoapEncodedPrimitive(typeof(int), "int", ns, "Int32", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
623
AddSoapEncodedPrimitive(typeof(bool), "boolean", ns, "Boolean", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
624
AddSoapEncodedPrimitive(typeof(short), "short", ns, "Int16", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
625
AddSoapEncodedPrimitive(typeof(long), "long", ns, "Int64", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
626
AddSoapEncodedPrimitive(typeof(float), "float", ns, "Single", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
627
AddSoapEncodedPrimitive(typeof(double), "double", ns, "Double", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
628
AddSoapEncodedPrimitive(typeof(decimal), "decimal", ns, "Decimal", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
629
AddSoapEncodedPrimitive(typeof(DateTime), "dateTime", ns, "DateTime", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
630
AddSoapEncodedPrimitive(typeof(XmlQualifiedName), "QName", ns, "XmlQualifiedName", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.HasIsEmpty |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired |
TypeFlags
.Reference);
631
AddSoapEncodedPrimitive(typeof(byte), "unsignedByte", ns, "Byte", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
632
AddSoapEncodedPrimitive(typeof(SByte), "byte", ns, "SByte", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
633
AddSoapEncodedPrimitive(typeof(UInt16), "unsignedShort", ns, "UInt16", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
634
AddSoapEncodedPrimitive(typeof(UInt32), "unsignedInt", ns, "UInt32", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
635
AddSoapEncodedPrimitive(typeof(UInt64), "unsignedLong", ns, "UInt64", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.XmlEncodingNotRequired);
638
AddSoapEncodedPrimitive(typeof(DateTime), "date", ns, "Date", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
639
AddSoapEncodedPrimitive(typeof(DateTime), "time", ns, "Time", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.XmlEncodingNotRequired);
641
AddSoapEncodedPrimitive(typeof(string), "Name", ns, "XmlName", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
642
AddSoapEncodedPrimitive(typeof(string), "NCName", ns, "XmlNCName", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
643
AddSoapEncodedPrimitive(typeof(string), "NMTOKEN", ns, "XmlNmToken", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
644
AddSoapEncodedPrimitive(typeof(string), "NMTOKENS", ns, "XmlNmTokens", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.AmbiguousDataType |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.HasCustomFormatter |
TypeFlags
.Reference);
646
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);
647
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);
649
AddSoapEncodedPrimitive(typeof(string), "arrayCoordinate", ns, "String", new XmlQualifiedName("string", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue);
650
AddSoapEncodedPrimitive(typeof(byte[]), "base64", ns, "ByteArrayBase64", new XmlQualifiedName("base64Binary", XmlSchema.Namespace),
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeElementValue |
TypeFlags
.IgnoreDefault |
TypeFlags
.Reference);
653
private static void AddPrimitive(Type type, string dataTypeName, string formatterName,
TypeFlags
flags)
664
private static void AddNonXsdPrimitive(Type type, string dataTypeName, string ns, string formatterName, XmlQualifiedName baseTypeName, XmlSchemaFacet[] facets,
TypeFlags
flags)
682
private static void AddSoapEncodedPrimitive(Type type, string dataTypeName, string ns, string formatterName, XmlQualifiedName baseTypeName,
TypeFlags
flags)
689
return GetTypeDesc(name, ns,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.CanBeAttributeValue);
692
internal TypeDesc GetTypeDesc(string name, string ns,
TypeFlags
flags)
789
TypeFlags
flags = 0;
796
flags |=
TypeFlags
.Unsupported;
801
flags |=
TypeFlags
.Unsupported;
807
flags |=
TypeFlags
.UseReflection;
810
flags |=
TypeFlags
.Reference;
815
flags |=
TypeFlags
.HasDefaultConstructor;
820
flags |=
TypeFlags
.Unsupported;
834
flags |=
TypeFlags
.Special |
TypeFlags
.CanBeElementValue;
842
flags |=
TypeFlags
.Unsupported;
849
flags |=
TypeFlags
.HasDefaultConstructor;
864
flags |=
TypeFlags
.Unsupported;
880
flags |=
TypeFlags
.OptionalValue;
886
if (info.IsAbstract) flags |=
TypeFlags
.Abstract;
893
flags |=
TypeFlags
.Special |
TypeFlags
.CanBeAttributeValue;
899
flags |=
TypeFlags
.Special |
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue;
901
flags &= ~
TypeFlags
.CanBeElementValue;
903
flags &= ~
TypeFlags
.CanBeTextValue;
905
flags |=
TypeFlags
.CanBeAttributeValue;
912
flags |=
TypeFlags
.Abstract;
918
flags |=
TypeFlags
.Unsupported;
934
flags |=
TypeFlags
.Unsupported;
1067
TypeFlags
flags =
TypeFlags
.None;
1254
private static
TypeFlags
GetConstructorFlags(Type type, ref Exception exception)
1259
TypeFlags
flags =
TypeFlags
.HasDefaultConstructor;
1261
flags |=
TypeFlags
.CtorInaccessible;
1268
flags |=
TypeFlags
.CtorInaccessible;
1277
private static Type GetEnumeratorElementType(Type type, ref
TypeFlags
flags)
1293
flags |=
TypeFlags
.GenericInterface;
1304
flags |=
TypeFlags
.UsePrivateImplementation;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (55)
78
internal TypeMapping GetDefaultMapping(
TypeFlags
flags)
141
TypeMapping typeMapping = ImportType(typeName, typeof(TypeMapping), baseType,
TypeFlags
.CanBeElementValue, true);
197
TypeMapping typeMapping = ImportType(typeName, typeof(MembersMapping), null,
TypeFlags
.CanBeElementValue, true);
376
mapping = ImportType(element.SchemaTypeName, desiredMappingType, baseType,
TypeFlags
.CanBeElementValue, false);
379
object type = FindType(element.SchemaTypeName,
TypeFlags
.CanBeElementValue);
391
mapping = ImportType((XmlSchemaComplexType)element.SchemaType, ns, identifier, desiredMappingType, baseType,
TypeFlags
.CanBeElementValue);
393
mapping = ImportDataType((XmlSchemaSimpleType)element.SchemaType, ns, identifier, baseType,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeTextValue, false);
415
RunSchemaExtensions(mapping, element.SchemaTypeName, element.SchemaType, element,
TypeFlags
.CanBeElementValue);
420
private void RunSchemaExtensions(TypeMapping mapping, XmlQualifiedName qname, XmlSchemaType type, XmlSchemaObject context,
TypeFlags
flags)
438
typeName = FindExtendedAnyElement((XmlSchemaAny)context, ((flags &
TypeFlags
.CanBeTextValue) != 0), compileUnit, mainNamespace, out typeOwner);
519
ImportType(type.QualifiedName, typeof(TypeMapping), null,
TypeFlags
.CanBeElementValue, false);
526
private TypeMapping ImportType(XmlQualifiedName name, Type desiredMappingType, Type baseType,
TypeFlags
flags, bool addref)
553
private TypeMapping ImportType(XmlSchemaComplexType type, string typeNs, string identifier, Type desiredMappingType, Type baseType,
TypeFlags
flags)
608
baseMapping = ImportType(type.DerivedFrom, typeof(TypeMapping), null,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue, false);
654
TypeFlags
flags =
TypeFlags
.Reference;
658
flags |=
TypeFlags
.Abstract;
715
TypeFlags
flags =
TypeFlags
.Reference;
750
t = FindType(t.DerivedFrom,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue);
1223
mapping = ImportType(simpleContentType, typeof(TypeMapping), null,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue, false);
1233
mapping = GetDefaultMapping(
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue);
1307
TypeFlags
flags =
TypeFlags
.CanBeElementValue;
1309
flags |=
TypeFlags
.CanBeTextValue;
1498
TypeFlags
flags =
TypeFlags
.CanBeElementValue;
1500
flags |=
TypeFlags
.CanBeTextValue;
1540
accessor.Mapping = GetDefaultMapping(
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue);
1719
mapping = (TypeMapping)ImportType(attribute.SchemaTypeName, typeof(TypeMapping), null,
TypeFlags
.CanBeAttributeValue, false);
1721
mapping = ImportDataType((XmlSchemaSimpleType)attribute.SchemaType, ns, identifier, null,
TypeFlags
.CanBeAttributeValue, false);
1724
mapping = GetDefaultMapping(
TypeFlags
.CanBeAttributeValue);
1730
RunSchemaExtensions(mapping, attribute.SchemaTypeName, attribute.SchemaType, attribute,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeAttributeValue |
TypeFlags
.CanBeTextValue);
1765
private TypeMapping ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType,
TypeFlags
flags, bool isList)
1814
mapping = ImportType(list.ItemTypeName, typeof(TypeMapping), null,
TypeFlags
.CanBeAttributeValue, true);
1827
private TypeMapping ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier,
TypeFlags
flags, bool isList)
1836
sourceType = FindType(sourceType.DerivedFrom,
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeAttributeValue);
1879
mapping = GetDefaultMapping(
TypeFlags
.CanBeElementValue |
TypeFlags
.CanBeTextValue |
TypeFlags
.CanBeAttributeValue);
1927
private PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType,
TypeFlags
flags)
1937
private PrimitiveMapping ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string ns,
TypeFlags
flags)
1993
private TypeDesc GetDataTypeSource(XmlSchemaSimpleType dataType,
TypeFlags
flags)
2010
private XmlSchemaSimpleType FindDataType(XmlQualifiedName name,
TypeFlags
flags)
2039
private XmlSchemaType FindType(XmlQualifiedName name,
TypeFlags
flags)