13 overrides of ReturnType
System.Private.CoreLib (6)
System.Reflection.Context (3)
System.Reflection.Emit (2)
System.Reflection.MetadataLoadContext (1)
System.Xaml.Tests (1)
449 references to ReturnType
dotnet-svcutil-lib (54)
GetDocument.Insider (6)
Infrastructure.Common (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Abstractions (3)
Microsoft.AspNetCore.Http.Extensions (15)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Mvc.Abstractions (4)
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
Microsoft.AspNetCore.Mvc.Core (14)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Microsoft.AspNetCore.OpenApi (13)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Routing.Abstractions (2)
Microsoft.AspNetCore.Shared.Tests (9)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (10)
Microsoft.AspNetCore.TestHost (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.CSharp (4)
Microsoft.DotNet.RemoteExecutor (5)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Microsoft.DotNet.XUnitExtensions (1)
Microsoft.DotNet.XUnitV3Extensions (1)
Microsoft.Extensions.AI.Abstractions (7)
Microsoft.Extensions.Validation.GeneratorTests (1)
Microsoft.Maui (2)
Microsoft.Maui.Controls (4)
Microsoft.ML.Core (11)
Microsoft.ML.Data (1)
Microsoft.ML.DataView (1)
Microsoft.ML.Transforms (13)
Microsoft.VisualBasic.Core (8)
Microsoft.VisualStudio.IntegrationTestService (1)
PresentationBuildTasks (1)
PresentationFramework (8)
Sample (2)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (4)
System.ComponentModel.TypeConverter (3)
System.Composition.TypedParts (1)
System.Linq.Expressions (81)
System\Linq\Expressions\BinaryExpression.cs (27)
346TypeUtils.AreEquivalent(method.ReturnType, left.GetNonNullableType());
608return new MethodBinaryExpression(binaryType, left, right, method.ReturnType, method);
616if (method != null && method.ReturnType.IsValueType && !method.ReturnType.IsNullableType())
618if (method.ReturnType != typeof(bool) || liftToNull)
620return new MethodBinaryExpression(binaryType, left, right, method.ReturnType.LiftPrimitiveOrThrow(), method);
642return new MethodBinaryExpression(binaryType, left, right, method.ReturnType, method);
648method.ReturnType.IsValueType && !method.ReturnType.IsNullableType())
650if (method.ReturnType != typeof(bool) || liftToNull)
652return new MethodBinaryExpression(binaryType, left, right, method.ReturnType.LiftPrimitiveOrThrow(), method);
767if (method.ReturnType == typeof(void))
819if (method.ReturnType != pms[0].ParameterType)
834if (opTrue == null || opTrue.ReturnType != typeof(bool) ||
835opFalse == null || opFalse.ReturnType != typeof(bool))
1288returnType = (left.Type.IsNullableType() && TypeUtils.AreEquivalent(method.ReturnType, left.Type.GetNonNullableType())) ? left.Type : method.ReturnType;
1294returnType = (left.Type.IsNullableType() && TypeUtils.AreEquivalent(method.ReturnType, left.Type.GetNonNullableType())) ? left.Type : method.ReturnType;
1341returnType = (left.Type.IsNullableType() && method.ReturnType == left.Type.GetNonNullableType()) ? left.Type : method.ReturnType;
1347returnType = (left.Type.IsNullableType() && method.ReturnType == left.Type.GetNonNullableType()) ? left.Type : method.ReturnType;
1395if (method.ReturnType == typeof(void))
1409if (!TypeUtils.AreEquivalent(method.ReturnType, right.Type))
1557if (!TypeUtils.AreEquivalent(mi.ReturnType, left.Type))
1563if (!TypeUtils.AreEquivalent(pms[0].ParameterType, method.ReturnType))
System\Linq\Expressions\InvocationExpression.cs (7)
430return new InvocationExpression0(expression, method.ReturnType);
468return new InvocationExpression1(expression, method.ReturnType, arg0);
509return new InvocationExpression2(expression, method.ReturnType, arg0, arg1);
555return new InvocationExpression3(expression, method.ReturnType, arg0, arg1, arg2);
605return new InvocationExpression4(expression, method.ReturnType, arg0, arg1, arg2, arg3);
659return new InvocationExpression5(expression, method.ReturnType, arg0, arg1, arg2, arg3, arg4);
736return new InvocationExpressionN(expression, args, mi.ReturnType);
System\Linq\Expressions\UnaryExpression.cs (13)
67(resultIsNullable && !TypeUtils.AreEquivalent(Method.ReturnType, this.Type));
365return new UnaryExpression(unaryType, operand, method.ReturnType, method);
372if (method != null && method.ReturnType.IsValueType && !method.ReturnType.IsNullableType())
374return new UnaryExpression(unaryType, operand, method.ReturnType.LiftPrimitiveOrThrow(), method);
390return new UnaryExpression(unaryType, operand, method.ReturnType, method);
395method.ReturnType.IsValueType && !method.ReturnType.IsNullableType())
397return new UnaryExpression(unaryType, operand, method.ReturnType.LiftPrimitiveOrThrow(), method);
435if (ParameterIsAssignable(pms[0], operand.Type) && TypeUtils.AreEquivalent(method.ReturnType, convertToType))
437return new UnaryExpression(unaryType, operand, method.ReturnType, method);
442(TypeUtils.AreEquivalent(method.ReturnType, convertToType.GetNonNullableType()) ||
443TypeUtils.AreEquivalent(method.ReturnType, convertToType)))
System.Private.CoreLib (13)
System.Private.DataContractSerialization (36)
System.Private.Xml (29)
System.Reflection.Context (3)
System.Reflection.DispatchProxy (3)
System.Reflection.Emit (2)
System.Runtime.InteropServices (1)
System.ServiceModel.Primitives (18)
System.Windows.Forms.Design (2)
System.Xaml (9)
System.Xaml.Tests (1)
xunit.assert (1)