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