diff --git a/src/Workspaces/Core/Portable/Extensions/OperationExtensions.cs b/src/Workspaces/Core/Portable/Extensions/OperationExtensions.cs index f55219f6df07106bc79021f11bc64a637ee9d4b4..041ef55573bb7afbdf964e000c71d15a36b218fc 100644 --- a/src/Workspaces/Core/Portable/Extensions/OperationExtensions.cs +++ b/src/Workspaces/Core/Portable/Extensions/OperationExtensions.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Immutable; using System.Diagnostics; -using System.Linq; using Microsoft.CodeAnalysis.FlowAnalysis; using Microsoft.CodeAnalysis.Operations; @@ -61,7 +60,7 @@ public static ValueUsageInfo GetValueUsageInfo(this IOperation operation) // return ValueUsageInfo.Write; - case IOperation iop when iop.GetType().GetInterfaces().Any(i => i.Name == "IRecursivePatternOperation"): + case IRecursivePatternOperation _: // A declaration pattern within a recursive pattern is a // write for the declared local. // For example, 'x' is defined and assigned the value from 'obj' below: