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)
257XmlAttributes a = GetAttributes(model.Type, true); 389TypeDesc modelTypeDesc = TypeScope.IsOptionalValue(model.Type) ? model.TypeDesc.BaseTypeDesc! : model.TypeDesc; 405a ??= GetAttributes(model.Type, false); 408throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.Type.FullName)); 415if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.Type); 454if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.Type); 457return ImportSpecialMapping(model.Type, model.TypeDesc, ns, context); 714a ??= GetAttributes(model.Type, false); 722string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.Name); 725StructMapping? mapping = (StructMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.Type); 735_anonymous[model.Type] = mapping; 783TypeModel baseModel = _modelScope.GetTypeModel(model.Type.BaseType!, false); 787throw new NotSupportedException(SR.Format(SR.XmlUnsupportedInheritance, model.Type.BaseType!.FullName)); 859throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, model.Type.FullName)); 866throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName)); 913throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName)); 915IncludeTypes(model.Type, limiter); 1082CreateArrayElementsFromAttributes(mapping, _savedArrayItemAttributes, model.Element.Type, _savedArrayNamespace ?? ns, limiter); 1083SetArrayMappingType(mapping, ns, model.Type); 1091IncludeTypes(model.Type); 1110_anonymous[model.Type] = mapping; 1117_anonymous[model.Type] = mapping; 1171XmlAttributes a = GetAttributes(model.Type, false); 1176string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.Name); 1179EnumMapping? mapping = (EnumMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.Type); 1186mapping.IsFlags = model.Type.IsDefined(typeof(FlagsAttribute), false); 1194_anonymous[model.Type] = mapping; 1448MemberInfo[] infos = structModel.Type.GetMember(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 1452PropertyInfo? info = structModel.Type.GetProperty(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);