FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (25)
200if (!model.TypeDesc.IsPrimitive)
209if (model.TypeDesc.FullName != td.FullName)
211throw new InvalidOperationException(string.Format(ResXml.XmlDataTypeMismatch, dataType, "SoapElementAttribute.DataType", model.TypeDesc.FullName));
220switch (model.TypeDesc.Kind)
233if (model.TypeDesc.IsOptionalValue)
235TypeDesc baseTypeDesc = model.TypeDesc.BaseTypeDesc;
240TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : _typeScope.GetTypeDesc(dataType, XmlSchema.Namespace);
241string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc.Name : dataType;
245return CreateNullableMapping(baseMapping, model.TypeDesc.Type);
252throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedSoapTypeKind, model.TypeDesc.FullName));
327if (model.TypeDesc.Kind == TypeKind.Root) return GetRootMapping();
334string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name);
337StructMapping mapping = (StructMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc);
342mapping.TypeDesc = model.TypeDesc;
387if (model.TypeDesc.BaseTypeDesc != null)
429if (model.TypeDesc.IsValueType)
430throw new NotSupportedException(string.Format(ResXml.XmlRpcRefsInValueType, model.TypeDesc.FullName));
455throw new NotSupportedException(string.Format(ResXml.XmlRpcArrayOfValueTypes, model.TypeDesc.FullName));
457mapping.TypeDesc = model.TypeDesc;
471if (existingMapping.TypeDesc == model.TypeDesc)
577mapping.TypeDesc = model.TypeDesc;
590string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name);
593EnumMapping mapping = (EnumMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc);
598mapping.TypeDesc = model.TypeDesc;
612throw new InvalidOperationException(string.Format(ResXml.XmlNoSerializableMembers, model.TypeDesc.FullName));