Skip to content

Commit 3e6a9cd

Browse files
fix incorrect as usage in DoesOperationHaveAttributeAddAttributeCodeFix (#4548)
Co-authored-by: Rockford Lhotka <[email protected]>
1 parent 992fc2f commit 3e6a9cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Csla.Analyzers/Csla.Analyzers/DoesOperationHaveAttributeAddAttributeCodeFix.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private static void AddCodeFix(CodeFixContext context, SyntaxNode root,
7878

7979
if (!root.HasUsing(DoesOperationHaveAttributeAnalyzerAddAttributeCodeFixConstants.CslaNamespace))
8080
{
81-
newRoot = (newRoot as CompilationUnitSyntax).AddUsings(
81+
newRoot = ((CompilationUnitSyntax)newRoot).AddUsings(
8282
SyntaxFactory.UsingDirective(SyntaxFactory.ParseName(
8383
DoesOperationHaveAttributeAnalyzerAddAttributeCodeFixConstants.CslaNamespace)));
8484
description = DoesOperationHaveAttributeAnalyzerAddAttributeCodeFixConstants.AddAttributeAndUsingDescription;

0 commit comments

Comments
 (0)