3 references to TryCastTo
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Simplification\CSharpSimplificationService.Expander.cs (3)
121return TryCastTo(returnType, body, newBody, out newLambdaExpressionBodyWithCast); 143if (TryCastTo(returnType, node.Expression, newReturnStatement.Expression, out var newExpressionWithCast)) 275if (TryCastTo(argumentType, node.Expression, newArgument.Expression, out var newArgumentExpressionWithCast))