Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal sealed class ServiceProvider : IServiceProvider, ICloneable
public bool AllowTestAdapterFrameworkRegistration { get; set; }

#pragma warning disable CS0618 // Type or member is obsolete
private static Type[] InternalOnlyExtensions =>
private static readonly HashSet<Type> InternalOnlyExtensions =

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is going to be faster.

Searching in array with small number of elements is usually actually faster than HashSet.

[
// TestHost
typeof(ITestHostApplicationLifetime),
Expand Down
Loading