From 10db28d23bbbf180d42dc3e2f9f2862e2be70a0f Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Tue, 27 Sep 2016 18:05:35 -0700 Subject: [PATCH] Prevent boxing. --- .../Core/Portable/FindSymbols/SymbolFinder_Declarations.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Workspaces/Core/Portable/FindSymbols/SymbolFinder_Declarations.cs b/src/Workspaces/Core/Portable/FindSymbols/SymbolFinder_Declarations.cs index e41efc6d037..1811ae8916f 100644 --- a/src/Workspaces/Core/Portable/FindSymbols/SymbolFinder_Declarations.cs +++ b/src/Workspaces/Core/Portable/FindSymbols/SymbolFinder_Declarations.cs @@ -128,7 +128,7 @@ public static partial class SymbolFinder if (string.IsNullOrWhiteSpace(name)) { - return ImmutableArray.Empty; + return SpecializedCollections.EmptyEnumerable(); } return await FindDeclarationsAsync( @@ -148,7 +148,7 @@ public static partial class SymbolFinder if (string.IsNullOrWhiteSpace(name)) { - return ImmutableArray.Empty; + return SpecializedCollections.EmptyEnumerable(); } return await FindDeclarationsAsync( @@ -404,7 +404,7 @@ public static Task> FindSourceDeclarationsAsync(Project pro if (string.IsNullOrWhiteSpace(name)) { - return ImmutableArray.Empty; + return SpecializedCollections.EmptyEnumerable(); } using (Logger.LogBlock(FunctionId.SymbolFinder_Project_Name_FindSourceDeclarationsAsync, cancellationToken)) -- GitLab