45 references to Type
dotnet-svcutil-lib (45)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (5)
124
get { return ModelScope.GetTypeModel(TypeScope.GetArrayElementType(
Type
, null)); }
147
MemberInfo[] members =
Type
.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
204
if (fieldInfo.DeclaringType !=
Type
) return null;
216
if (propertyInfo.DeclaringType !=
Type
) return null;
411
FieldInfo[] fields =
Type
.GetFields();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (10)
215
SoapAttributes a = GetAttributes(model.
Type
);
218
throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.
Type
.FullName));
329
SoapAttributes a = GetAttributes(model.
Type
);
334
string typeName = XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
389
StructMapping baseMapping = ImportStructLikeMapping((StructModel)_modelScope.GetTypeModel(model.
Type
.GetTypeInfo().BaseType, false), limiter);
442
IncludeTypes(model.
Type
, limiter);
481
IncludeTypes(model.
Type
);
586
SoapAttributes a = GetAttributes(model.
Type
);
590
string typeName = XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
601
mapping.IsFlags = model.
Type
.GetTypeInfo().IsDefined(typeof(FlagsAttribute), false);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (30)
261
XmlAttributes a = GetAttributes(model.
Type
, true);
394
TypeDesc modelTypeDesc = TypeScope.IsOptionalValue(model.
Type
) ? model.TypeDesc.BaseTypeDesc : model.TypeDesc;
411
a = GetAttributes(model.
Type
, false);
414
throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.
Type
.FullName));
421
if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.
Type
);
460
if (a.XmlFlags != 0) throw InvalidAttributeUseException(model.
Type
);
463
return ImportSpecialMapping(model.
Type
, model.TypeDesc, ns, context, limiter);
730
a = GetAttributes(model.
Type
, false);
738
string typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
741
StructMapping mapping = (StructMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.
Type
);
751
_anonymous[model.
Type
] = mapping;
798
TypeModel baseModel = _modelScope.GetTypeModel(model.
Type
.GetTypeInfo().BaseType, false);
802
throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedInheritance, model.
Type
.GetTypeInfo().BaseType.FullName));
874
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalMultipleText, model.
Type
.FullName));
881
throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.
Type
.FullName));
928
throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.
Type
.FullName));
930
IncludeTypes(model.
Type
, limiter);
1097
_savedArrayItemAttributes.Add(CreateArrayItemAttribute(_typeScope.GetTypeDesc(model.Element.
Type
), _arrayNestingLevel));
1098
CreateArrayElementsFromAttributes(mapping, _savedArrayItemAttributes, model.Element.
Type
, _savedArrayNamespace == null ? ns : _savedArrayNamespace, limiter);
1099
SetArrayMappingType(mapping, ns, model.
Type
);
1107
IncludeTypes(model.
Type
);
1126
_anonymous[model.
Type
] = mapping;
1133
_anonymous[model.
Type
] = mapping;
1186
XmlAttributes a = GetAttributes(model.
Type
, false);
1191
string typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.
Type
, a, model.TypeDesc.Name);
1194
EnumMapping mapping = (EnumMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.
Type
);
1201
mapping.IsFlags = model.
Type
.GetTypeInfo().IsDefined(typeof(FlagsAttribute), false);
1209
_anonymous[model.
Type
] = mapping;
1460
MemberInfo[] infos = structModel.
Type
.GetMember(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
1464
PropertyInfo info = structModel.
Type
.GetProperty(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);