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