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)
270
XmlAttributes a = GetAttributes(model.
Type
, true);
404
TypeDesc modelTypeDesc = TypeScope.IsOptionalValue(model.
Type
) ? model.TypeDesc.BaseTypeDesc! : model.TypeDesc;
420
a ??= GetAttributes(model.
Type
, false);
423
throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.
Type
.FullName));
430
if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.
Type
);
469
if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.
Type
);
472
return ImportSpecialMapping(model.
Type
, model.TypeDesc, ns, context);
731
a ??= GetAttributes(model.
Type
, false);
739
string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
742
StructMapping? mapping = (StructMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.
Type
);
752
_anonymous[model.
Type
] = mapping;
801
TypeModel baseModel = _modelScope.GetTypeModel(model.
Type
.BaseType!, false);
805
throw new NotSupportedException(SR.Format(SR.XmlUnsupportedInheritance, model.
Type
.BaseType!.FullName));
877
throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, model.
Type
.FullName));
884
throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.
Type
.FullName));
931
throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.
Type
.FullName));
933
IncludeTypes(model.
Type
, limiter);
1101
CreateArrayElementsFromAttributes(mapping, _savedArrayItemAttributes, model.Element.
Type
, _savedArrayNamespace ?? ns, limiter);
1102
SetArrayMappingType(mapping, ns, model.
Type
);
1110
IncludeTypes(model.
Type
);
1129
_anonymous[model.
Type
] = mapping;
1136
_anonymous[model.
Type
] = mapping;
1190
XmlAttributes a = GetAttributes(model.
Type
, false);
1195
string? typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
1198
EnumMapping? mapping = (EnumMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.
Type
);
1205
mapping.IsFlags = model.
Type
.IsDefined(typeof(FlagsAttribute), false);
1213
_anonymous[model.
Type
] = mapping;
1470
MemberInfo[] infos = structModel.
Type
.GetMember(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
1474
PropertyInfo? info = structModel.
Type
.GetProperty(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);