From 3e31ace6bd0fad7a628f4e6f2432d1afc5b10bb7 Mon Sep 17 00:00:00 2001 From: Oleksandr Liakhevych Date: Thu, 3 Jan 2019 00:02:11 +0200 Subject: [PATCH] Fix rare crash with multiple method overloads with various parameters quantity --- IntelliSenseExtender/Extensions/SemanticModelExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/IntelliSenseExtender/Extensions/SemanticModelExtensions.cs b/IntelliSenseExtender/Extensions/SemanticModelExtensions.cs index de98c36..1e3b135 100644 --- a/IntelliSenseExtender/Extensions/SemanticModelExtensions.cs +++ b/IntelliSenseExtender/Extensions/SemanticModelExtensions.cs @@ -196,6 +196,7 @@ private static IList GetParameters(this SemanticModel semantic methodSymbol = methodInfo.CandidateSymbols .OfType() + .Where(s => s.Parameters.Length >= argumentListSyntax.Arguments.Count) .FirstOrDefault(s => { for (int i = 0; i < presentArguments.Count; i++)