Skip to content

Commit 57eeceb

Browse files
committed
优化字典比较
1 parent 80c83f2 commit 57eeceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNetCampus.CommandLine/CommandRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace DotNetCampus.Cli;
1010
/// </summary>
1111
public class CommandRunner : ICommandRunnerBuilder, IAsyncCommandRunnerBuilder
1212
{
13-
private static ConcurrentDictionary<Type, VerbCreationInfo> VerbCreationInfos { get; } = [];
13+
private static ConcurrentDictionary<Type, VerbCreationInfo> VerbCreationInfos { get; } = new(ReferenceEqualityComparer.Instance);
1414

1515
private readonly CommandLine _commandLine;
1616
private readonly DictionaryCommandHandlerCollection _dictionaryVerbHandlers = new();

0 commit comments

Comments
 (0)