11 writes to Type
System.ServiceModel (8)
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (1)
357partDescription.Type = bodyType;
System\ServiceModel\ComIntegration\DispatchProxy.cs (2)
127msgDesc.Body.ReturnValue.Type = Type.GetType(msgDesc.Body.ReturnValue.BaseType); 158param.Type = paramInfo.type;
System\ServiceModel\Description\MessageContractImporter.cs (1)
1243bodyPart.Type = type;
System\ServiceModel\Description\TypeLoader.cs (3)
1211parameterPart.Type = type; 1399partDescription.Type = bodyType; 1427headerDescription.Type = TypedHeaderManager.GetHeaderType(headerParameterType);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
555part.Type = (member.MemberType == MemberTypes.Property) ? ((PropertyInfo)member).PropertyType : ((FieldInfo)member).FieldType;
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\MessageBuilder.cs (3)
173Type = type 204Type = argumentTypes[index] 229message.Body.ReturnValue.Type = TypeHelper.VoidType;
106 references to Type
System.ServiceModel (45)
System\ServiceModel\Description\MessageContractExporter.cs (6)
948Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(header.Type, out isQueryable); 950ExportMessagePart(wsdlMessage, header, typeName, xsdType, true/*isOptional*/, IsTypeNullable(header.Type), false/*IsOperationInherited(operation)*/, true /*generateElement*/, null/*wrapperNamespace*/, null/*wrapperSequence*/, SchemaSet); 978Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(description.Body.ReturnValue.Type, out isQueryable); 980ExportMessagePart(wsdlMessage, description.Body.ReturnValue, typeName, xsdType, true/*isOptional*/, IsTypeNullable(description.Body.ReturnValue.Type), false/*isOperationInherited*/, dataContractFormatAttribute.Style != OperationFormatStyle.Rpc, description.Body.WrapperNamespace, wrapperSequence, SchemaSet); 986Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(bodyPart.Type, out isQueryable); 988ExportMessagePart(wsdlMessage, bodyPart, typeName, xsdType, true/*isOptional*/, IsTypeNullable(bodyPart.Type), false/*isOperationInherited*/, dataContractFormatAttribute.Style != OperationFormatStyle.Rpc, description.Body.WrapperNamespace, wrapperSequence, SchemaSet);
System\ServiceModel\Description\MessageDescription.cs (3)
162return (Body.ReturnValue != null && Body.Parts.Count == 0 && Body.ReturnValue.Type == TypeOfUntypedMessage) || 163(Body.ReturnValue == null && Body.Parts.Count == 1 && Body.Parts[0].Type == TypeOfUntypedMessage); 171return !IsTypedMessage && Body.Parts.Count == 0 && (Body.ReturnValue == null || Body.ReturnValue.Type == typeof(void));
System\ServiceModel\Description\MessageHeaderDescription.cs (1)
77return isUnknownHeader || Multiple && (Type == typeof(XmlElement));
System\ServiceModel\Description\OperationGenerator.cs (3)
691if (part.Type == typeof(System.IO.Stream)) 743if (setting.Type != null) 744return Context.ServiceContractGenerator.GetCodeTypeReference(setting.Type);
System\ServiceModel\Description\TypeLoader.cs (1)
1428headerDescription.TypedHeader = (headerParameterType != headerDescription.Type);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (3)
531Type bodyObjectType = bodyPart.Type; 543Type bodyObjectType = bodyPart.Type; 943return GetXmlReflectionMember(memberName, elementName, ns, part.Type, additionalAttributesProvider, part.Multiple, isEncoded, isWrapped);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (9)
137ValidateDataContractType(headerDescription.Type); 186bool isXmlElement = headerDescription.Type == typeof(XmlElement); 297item = TypedHeaderManager.Create(headerDescription.Type, dataValue, headers[i].MustUnderstand, headers[i].Relay, headers[i].Actor); 312multipleHeaderValues[headerDescription.Index] = new KeyValuePair<System.Type, System.Collections.ArrayList>(headerDescription.TypedHeader ? TypedHeaderManager.GetMessageHeaderType(headerDescription.Type) : headerDescription.Type, new ArrayList()); 328dataValue = TypedHeaderManager.Create(unknownHeaderDescription.Type, dataValue, headers[i].MustUnderstand, headers[i].Relay, headers[i].Actor); 352Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(headerDescription.Type, out isQueryable); 434return items.ToArray(part.Description.Type); 548this.contractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(description.Type, out this.isQueryable);
System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
468parameterValue = TypedHeaderManager.GetContent(headerDescription.Type, parameterValue, out mustUnderstand, out relay, out actor); 474return (returnValue != null) && (returnValue.Type != typeof(void));
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (6)
83if (responseMessage.Body.ReturnValue != null && responseMessage.Body.ReturnValue.Type != typeof(void)) 271Type type = part.Type; 337Type type = bodyDescription.Type; 681if (description.Type.IsArray) 684this.typeCode = Type.GetTypeCode(description.Type.GetElementType()); 689this.typeCode = Type.GetTypeCode(description.Type);
System\ServiceModel\Dispatcher\StreamFormatter.cs (4)
185if (messageDescription.Body.ReturnValue != null && messageDescription.Body.ReturnValue.Type == typeof(Stream)) 189if (part.Type == typeof(Stream)) 200if (messageDescription.Body.ReturnValue.Type == typeof(Stream)) 206if (messageDescription.Body.Parts[0].Type == typeof(Stream))
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (6)
255unknownHeader = TypedHeaderManager.Create(unknownHeaderDescription.Type, unknownHeader, header.MustUnderstand, header.Relay, header.Actor); 349object bodyObject = Activator.CreateInstance(messageDescription.Body.Parts[0].Type); 447Array tArray = Array.CreateInstance(headerDescription.Type, messageHeaderOfTArray.Length); 507object[] messageHeaderOfTArray = (object[])Array.CreateInstance(TypedHeaderManager.GetMessageHeaderType(headerDescription.Type), messageHeaderOfTAttributes.Count); 512messageHeaderOfTArray[i] = TypedHeaderManager.Create(headerDescription.Type, headerValues.GetValue(i), 520return TypedHeaderManager.Create(headerDescription.Type, headerValue,
System\ServiceModel\MsmqIntegration\MsmqIntegrationValidationBehavior.cs (1)
105Type type = message.Body.Parts[0].Type;
System.ServiceModel.Activities (36)
System\ServiceModel\Activities\ContractValidationHelper.cs (22)
236else if (!targetMessage.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 238Constraint.AddValidationError(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(declaredMessageType.FullName, targetMessage.Body.ReturnValue.Type.Name, operation.Name, operation.DeclaringContract.Name))); 253if (!targetMessage.Body.Parts[0].Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 255Constraint.AddValidationError(context, new ValidationError(SR2.MessageTypeMismatch(targetMessage.Body.Parts[0].Type.FullName, operation.Name, operation.DeclaringContract.Name))); 324if (isResponse && targetMessage.Body.ReturnValue != null && targetMessage.Body.ReturnValue.Type != TypeHelper.VoidType) 368if (declaredMessageType != targetPart.Type) 372Constraint.AddValidationError(context, new ValidationError(SR2.ParameterTypeMismatch(declaredMessageType.FullName, targetPart.Type.FullName, operation.Name, operation.DeclaringContract.Name))); 376Constraint.AddValidationError(context, new ValidationError(SR2.ParameterTypeMismatch(TypeHelper.VoidType.FullName, targetPart.Type.FullName, operation.Name, operation.DeclaringContract.Name))); 412bool targetHasReturnValue = isResponse && targetMessageBody.ReturnValue != null && targetMessageBody.ReturnValue.Type != TypeHelper.VoidType; 418if (argument != null && argument.ArgumentType != targetMessageBody.ReturnValue.Type) 420Constraint.AddValidationError(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(argument.ArgumentType.FullName, targetMessageBody.ReturnValue.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name))); 431Constraint.AddValidationError(context, new ValidationError(SR2.ReturnValueMissing(targetMessageBody.ReturnValue.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name))); 442if (argument != null && argument.ArgumentType != targetPart.Type) 444Constraint.AddValidationError(context, new ValidationError(SR2.ParameterTypeMismatch(targetPart.Name, targetPart.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name))); 502if (!messagePart.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 522if ((message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsDefined(typeof(MessageContractAttribute), false)) 523|| (message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))) 529if (operation.Messages[1].MessageType != null || operation.Messages[1].Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 566if (message.Body.ReturnValue != null && message.Body.ReturnValue.Type != typeof(void)) 568if (!message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 591if (!messagePart.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 613&& operation.Messages[0].Body.Parts[0].Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System\ServiceModel\Activities\Receive.cs (6)
543if (!messagePart.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 569Argument outArgument = OutArgument.Create(messagePart.Type, ArgumentDirection.Out); 587content.DeclaredMessageType = message.Body.Parts[0].Type; 599if ((message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsDefined(typeof(MessageContractAttribute), false)) 600|| (message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))) 606if (operation.Messages[1].MessageType != null || operation.Messages[1].Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System\ServiceModel\Activities\SendReply.cs (8)
288if (message.Body.ReturnValue != null && message.Body.ReturnValue.Type != typeof(void)) 290if (!message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 313if (!messagePart.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 330&& message.Body.ReturnValue.Type != typeof(void)) 332Argument returnArgument = InArgument.Create(message.Body.ReturnValue.Type, ArgumentDirection.In); 340Argument inArgument = InArgument.Create(messagePart.Type, ArgumentDirection.In); 354content.DeclaredMessageType = message.Body.ReturnValue.Type; 381&& operation.Messages[0].Body.Parts[0].Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System.ServiceModel.Web (25)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (3)
121Type paramType = ReplaceMessageWithObject(messagePart.Type); 133if (responseMessage.Body.ReturnValue != null && responseMessage.Body.ReturnValue.Type != null) 136serviceData.ProcessClientType(ReplaceMessageWithObject(responseMessage.Body.ReturnValue.Type), false, true);
System\ServiceModel\Description\WebHttpBehavior.cs (12)
434return (message.Body.ReturnValue != null && message.Body.Parts.Count == 0 && message.Body.ReturnValue.Type == typeof(Message)) || 435(message.Body.ReturnValue == null && message.Body.Parts.Count == 1 && message.Body.Parts[0].Type == typeof(Message)); 959if (message.Body.Parts.Count == 1 && message.Body.Parts[0].Type != typeof(void)) 961type = message.Body.Parts[0].Type; 971if (message.Body.ReturnValue != null && message.Body.ReturnValue.Type != typeof(void)) 973type = message.Body.ReturnValue.Type; 991if (typeof(Stream) == message.Body.Parts[i].Type) 993type = message.Body.Parts[i].Type; 1010if (typeof(Stream) == message.Body.Parts[i].Type) 1015if (message.Body.ReturnValue != null && typeof(Stream) == message.Body.ReturnValue.Type) 1022type = message.Body.ReturnValue.Type; 1248if (description.Type == typeof(Stream))
System\ServiceModel\Dispatcher\HelpPage.cs (2)
238return (od.Messages[1].Body.ReturnValue.Type); 266return parts.First().Type;
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (4)
165if (mpd.Type != typeof(string)) 180if (!qsc.CanConvert(mpd.Type)) 183SR2.GetString(SR2.UriTemplateQueryVarMustBeConvertible, operationDescription.XmlName.DecodedName, contractName, parameterName, mpd.Type, qsc.GetType().Name))); 185queryMapping.Add(i, new KeyValuePair<string, Type>(parameterName, mpd.Type));
System\ServiceModel\Web\WebServiceHost.cs (4)
295if (IsStreamPart(message.Body.Parts[0].Type)) 300else if (IsVoidPart(message.Body.Parts[0].Type)) 321if (message.Body.ReturnValue == null || IsVoidPart(message.Body.ReturnValue.Type)) 325else if (IsStreamPart(message.Body.ReturnValue.Type))