<Project>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.CodeAnalysis" Version="$(MicrosoftDotNetCodeAnalysisPackageVersion)" />
- <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.3.0-beta2-final" />
- <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4" />
+ <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.4.0-beta2-final" />
+ <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.6" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.66" />
</ItemGroup>
</Project>
// Find the ctor that takes only AttributeTargets
ConstructorInfo attributeUsageConstructorInfo =
attributeUsageTypeInfo.DeclaredConstructors
- .Single(c => c.GetParameters().Count() == 1 &&
+ .Single(c => c.GetParameters().Length == 1 &&
c.GetParameters()[0].ParameterType == typeof(AttributeTargets));
// Find the property to set AllowMultiple
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
-using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
if (argument.NodeType == ExpressionType.Call)
{
var methodCallExpression = (MethodCallExpression)argument;
- if (methodCallExpression.Arguments.Count() == 1)
+ if (methodCallExpression.Arguments.Count == 1)
{
Expression parameter = methodCallExpression.Arguments[0];
if (parameter.NodeType == ExpressionType.Lambda)
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
-using System.Linq;
-using System.Reflection;
using System.Linq.Expressions;
+using System.Reflection;
namespace System.Composition.Convention
{
if (argument.NodeType == ExpressionType.Call)
{
var methodCallExpression = (MethodCallExpression)argument;
- if (methodCallExpression.Arguments.Count() == 1)
+ if (methodCallExpression.Arguments.Count == 1)
{
Expression parameter = methodCallExpression.Arguments[0];
if (parameter.NodeType == ExpressionType.Lambda)