23 writes to ReturnType
dotnet-svcutil-lib (23)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
194getSchemaMethod.ReturnType = new CodeTypeReference(typeof(Microsoft.Xml.Schema.XmlSchema));
CodeDomFixup\CodeDomHelpers.cs (1)
74m.ReturnType = method.ReturnType;
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
82ReturnType = new CodeTypeReference(typeof(Task)),
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
249operationCompletedMethod.ReturnType = new CodeTypeReference(typeof(void));
CodeDomFixup\MethodCreationHelper.cs (4)
29ReturnType = new CodeTypeReference(typeof(EndpointAddress)), 38ReturnType = new CodeTypeReference(typeof(Binding)), 2178ReturnType = new CodeTypeReference(typeof(Binding)), 2185ReturnType = new CodeTypeReference(typeof(EndpointAddress)),
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
1630getSchemaMethod.ReturnType = GetCodeTypeReference(typeof(XmlSchema)); 1642getSchemaStaticMethod.ReturnType = GetCodeTypeReference(Globals.TypeOfXmlQualifiedName);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (8)
304helperMethod.ReturnType = method.ReturnType; 332helperMethod.ReturnType = field.Type; 481m.ReturnType = method.ReturnType; 656onBeginOperationMethod.ReturnType = new CodeTypeReference(s_asyncResultType); 710onEndOperationMethod.ReturnType = new CodeTypeReference(s_objectArrayType); 790operationCompletedMethod.ReturnType = new CodeTypeReference(s_voidType); 847eventAsyncMethod.ReturnType = new CodeTypeReference(s_voidType); 893eventAsyncMethodOverload.ReturnType = eventAsyncMethod.ReturnType;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (4)
259_endMethod.ReturnType = GetParameterType(_response.Body.ReturnValue); 290_endMethod.ReturnType = typedRespMessageRef; 382_endMethod.ReturnType = _context.ServiceContractGenerator.GetCodeTypeReference(typeof(Message)); 964_method.ReturnType = taskReturnType;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
291beginMethod.ReturnType = _context.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult));
26 references to ReturnType
dotnet-svcutil-lib (26)
CodeDomFixup\CodeDomHelpers.cs (4)
74m.ReturnType = method.ReturnType; 96(MatchType(method.ReturnType, new CodeTypeReference(typeof(Task<>)), false, true) || 97MatchType<Task>(method.ReturnType))); 107MatchType<IAsyncResult>(method.ReturnType);
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
101new CodeTypeReferenceExpression(implMethod.ReturnType),
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (1)
291Enumerate(method.ReturnType);
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
483if (method.ReturnType.BaseType != typeof(void).FullName) 487method.ReturnType)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (1)
376ValidateTypeReference(e.ReturnType);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
2047OutputType(e.ReturnType); 2130OutputType(e.ReturnType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (14)
286if (method.ReturnType.BaseType == s_voidTypeRef.BaseType) 290CodeTypeDeclaration returnTypeDecl = ServiceContractGenerator.NamespaceHelper.GetCodeType(method.ReturnType); 296helperMethod.Statements.Add(new CodeVariableDeclarationStatement(method.ReturnType, outVar.VariableName, invokeMethod)); 304helperMethod.ReturnType = method.ReturnType; 330if (param == null && dir == FieldDirection.Out && helperMethod.ReturnType.BaseType == s_voidTypeRef.BaseType) 481m.ReturnType = method.ReturnType; 513if ((endMethod.Parameters.Count == 1) && (endMethod.ReturnType.BaseType == s_voidTypeRef.BaseType)) 558if (endMethod.ReturnType.BaseType != s_voidTypeRef.BaseType) 562endMethod.ReturnType, 740if (endMethod.ReturnType.BaseType != s_voidTypeRef.BaseType) 743retValDecl.Type = endMethod.ReturnType; 893eventAsyncMethodOverload.ReturnType = eventAsyncMethod.ReturnType; 995return method.ReturnType == null || String.Compare(method.ReturnType.BaseType, typeof(void).FullName, StringComparison.Ordinal) == 0;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
953CodeTypeReference resultType = _method.ReturnType;