6 references to Cast
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\ArgumentFixer.cs (1)
21
=> oldArgument.WithExpression(oldArgument.Expression.
Cast
(conversionType));
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\AttributeArgumentFixer.cs (1)
21
=> oldArgument.WithExpression(oldArgument.Expression.
Cast
(conversionType));
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
48
=> expression.
Cast
(type);
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (2)
199
return node.
Cast
(typeInfo.ConvertedType);
269
node.Expression.
Cast
(expressionConvertedType).WithAdditionalAnnotations(Formatter.Annotation),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
130
var castExpression = expression.
Cast
(targetType);