44 references to Type
System.Private.Xml (44)
System\Xml\Serialization\Models.cs (5)
136
get { return ModelScope.GetTypeModel(TypeScope.GetArrayElementType(
Type
, null)!); }
164
MemberInfo[] members =
Type
.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
220
if (fieldInfo.DeclaringType !=
Type
) return null;
233
if (propertyInfo.DeclaringType !=
Type
) return null;
431
FieldInfo[] fields =
Type
.GetFields();
System\Xml\Serialization\SoapReflectionImporter.cs (10)
182
SoapAttributes a = GetAttributes(model.
Type
);
185
throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.
Type
.FullName));
300
SoapAttributes a = GetAttributes(model.
Type
);
305
string typeName = XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
360
StructMapping baseMapping = ImportStructLikeMapping((StructModel)_modelScope.GetTypeModel(model.
Type
.BaseType!, false), limiter);
413
IncludeTypes(model.
Type
, limiter);
452
IncludeTypes(model.
Type
);
557
SoapAttributes a = GetAttributes(model.
Type
);
561
string typeName = XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
572
mapping.IsFlags = model.
Type
.IsDefined(typeof(FlagsAttribute), false);
System\Xml\Serialization\XmlReflectionImporter.cs (29)
257
XmlAttributes a = GetAttributes(model.
Type
, true);
389
TypeDesc modelTypeDesc = TypeScope.IsOptionalValue(model.
Type
) ? model.TypeDesc.BaseTypeDesc! : model.TypeDesc;
405
a ??= GetAttributes(model.
Type
, false);
408
throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.
Type
.FullName));
415
if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.
Type
);
454
if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.
Type
);
457
return ImportSpecialMapping(model.
Type
, model.TypeDesc, ns, context);
714
a ??= GetAttributes(model.
Type
, false);
722
string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
725
StructMapping? mapping = (StructMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.
Type
);
735
_anonymous[model.
Type
] = mapping;
783
TypeModel baseModel = _modelScope.GetTypeModel(model.
Type
.BaseType!, false);
787
throw new NotSupportedException(SR.Format(SR.XmlUnsupportedInheritance, model.
Type
.BaseType!.FullName));
859
throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, model.
Type
.FullName));
866
throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.
Type
.FullName));
913
throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.
Type
.FullName));
915
IncludeTypes(model.
Type
, limiter);
1082
CreateArrayElementsFromAttributes(mapping, _savedArrayItemAttributes, model.Element.
Type
, _savedArrayNamespace ?? ns, limiter);
1083
SetArrayMappingType(mapping, ns, model.
Type
);
1091
IncludeTypes(model.
Type
);
1110
_anonymous[model.
Type
] = mapping;
1117
_anonymous[model.
Type
] = mapping;
1171
XmlAttributes a = GetAttributes(model.
Type
, false);
1176
string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
1179
EnumMapping? mapping = (EnumMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.
Type
);
1186
mapping.IsFlags = model.
Type
.IsDefined(typeof(FlagsAttribute), false);
1194
_anonymous[model.
Type
] = mapping;
1448
MemberInfo[] infos = structModel.
Type
.GetMember(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
1452
PropertyInfo? info = structModel.
Type
.GetProperty(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);