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