44 references to Type
System.Private.Xml (44)
System\Xml\Serialization\Models.cs (5)
136get { return ModelScope.GetTypeModel(TypeScope.GetArrayElementType(Type, null)!); } 164MemberInfo[] members = Type.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 220if (fieldInfo.DeclaringType != Type) return null; 233if (propertyInfo.DeclaringType != Type) return null; 431FieldInfo[] fields = Type.GetFields();
System\Xml\Serialization\SoapReflectionImporter.cs (10)
182SoapAttributes a = GetAttributes(model.Type); 185throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.Type.FullName)); 300SoapAttributes a = GetAttributes(model.Type); 305string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name); 360StructMapping baseMapping = ImportStructLikeMapping((StructModel)_modelScope.GetTypeModel(model.Type.BaseType!, false), limiter); 413IncludeTypes(model.Type, limiter); 452IncludeTypes(model.Type); 557SoapAttributes a = GetAttributes(model.Type); 561string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name); 572mapping.IsFlags = model.Type.IsDefined(typeof(FlagsAttribute), false);
System\Xml\Serialization\XmlReflectionImporter.cs (29)
270XmlAttributes a = GetAttributes(model.Type, true); 404TypeDesc modelTypeDesc = TypeScope.IsOptionalValue(model.Type) ? model.TypeDesc.BaseTypeDesc! : model.TypeDesc; 420a ??= GetAttributes(model.Type, false); 423throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.Type.FullName)); 430if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.Type); 469if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.Type); 472return ImportSpecialMapping(model.Type, model.TypeDesc, ns, context); 731a ??= GetAttributes(model.Type, false); 739string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.Name); 742StructMapping? mapping = (StructMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.Type); 752_anonymous[model.Type] = mapping; 801TypeModel baseModel = _modelScope.GetTypeModel(model.Type.BaseType!, false); 805throw new NotSupportedException(SR.Format(SR.XmlUnsupportedInheritance, model.Type.BaseType!.FullName)); 877throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, model.Type.FullName)); 884throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName)); 931throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName)); 933IncludeTypes(model.Type, limiter); 1101CreateArrayElementsFromAttributes(mapping, _savedArrayItemAttributes, model.Element.Type, _savedArrayNamespace ?? ns, limiter); 1102SetArrayMappingType(mapping, ns, model.Type); 1110IncludeTypes(model.Type); 1129_anonymous[model.Type] = mapping; 1136_anonymous[model.Type] = mapping; 1190XmlAttributes a = GetAttributes(model.Type, false); 1195string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.Name); 1198EnumMapping? mapping = (EnumMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.Type); 1205mapping.IsFlags = model.Type.IsDefined(typeof(FlagsAttribute), false); 1213_anonymous[model.Type] = mapping; 1470MemberInfo[] infos = structModel.Type.GetMember(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 1474PropertyInfo? info = structModel.Type.GetProperty(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);