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