45 references to Type
System.Xml (45)
System\Xml\Serialization\Models.cs (5)
111get { return ModelScope.GetTypeModel(TypeScope.GetArrayElementType(Type, null)); } 131MemberInfo[] members = Type.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 179if (fieldInfo.DeclaringType != Type) return null; 190if (propertyInfo.DeclaringType != Type) return null; 351FieldInfo[] fields = Type.GetFields();
System\Xml\Serialization\SoapReflectionImporter.cs (10)
197SoapAttributes a = GetAttributes(model.Type); 200throw new InvalidOperationException(Res.GetString(Res.XmlInvalidTypeAttributes, model.Type.FullName)); 297SoapAttributes a = GetAttributes(model.Type); 302string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name); 351StructMapping baseMapping = ImportStructLikeMapping((StructModel)modelScope.GetTypeModel(model.Type.BaseType, false), limiter); 397IncludeTypes(model.Type, limiter); 434IncludeTypes(model.Type); 522SoapAttributes a = GetAttributes(model.Type); 526string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name); 536mapping.IsFlags = model.Type.IsDefined(typeof(FlagsAttribute), false);
System\Xml\Serialization\XmlReflectionImporter.cs (30)
235XmlAttributes a = GetAttributes(model.Type, true); 351TypeDesc modelTypeDesc = TypeScope.IsOptionalValue(model.Type) ? model.TypeDesc.BaseTypeDesc : model.TypeDesc; 365a = GetAttributes(model.Type, false); 368throw new InvalidOperationException(Res.GetString(Res.XmlInvalidTypeAttributes, model.Type.FullName)); 374if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.Type); 408if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.Type); 411return ImportSpecialMapping(model.Type, model.TypeDesc, ns, context, limiter); 643a = GetAttributes(model.Type, false); 651string typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.Name); 654StructMapping mapping = (StructMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc, types, model.Type); 663anonymous[model.Type] = mapping; 704TypeModel baseModel = modelScope.GetTypeModel(model.Type.BaseType, false); 707throw new NotSupportedException(Res.GetString(Res.XmlUnsupportedInheritance, model.Type.BaseType.FullName)); 767throw new InvalidOperationException(Res.GetString(Res.XmlIllegalMultipleText, model.Type.FullName)); 773throw new InvalidOperationException(Res.GetString(Res.XmlMultipleXmlns, model.Type.FullName)); 812throw new InvalidOperationException(Res.GetString(Res.XmlMultipleXmlns, model.Type.FullName)); 814IncludeTypes(model.Type, limiter); 958savedArrayItemAttributes.Add(CreateArrayItemAttribute(typeScope.GetTypeDesc(model.Element.Type), arrayNestingLevel)); 959CreateArrayElementsFromAttributes(mapping, savedArrayItemAttributes, model.Element.Type, savedArrayNamespace == null ? ns : savedArrayNamespace, limiter); 960SetArrayMappingType(mapping, ns, model.Type); 967IncludeTypes(model.Type); 984anonymous[model.Type] = mapping; 991anonymous[model.Type] = mapping; 1036XmlAttributes a = GetAttributes(model.Type, false); 1041string typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.Name); 1044EnumMapping mapping = (EnumMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc, types, model.Type); 1050mapping.IsFlags = model.Type.IsDefined(typeof(FlagsAttribute), false); 1058anonymous[model.Type] = mapping; 1269MemberInfo[] infos = structModel.Type.GetMember(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 1272PropertyInfo info = structModel.Type.GetProperty(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);