Skip to content

Conversation

martincostello
Copy link
Member

  • Use TryGetValue() instead of ContainsKey() + indexer.
  • Make two fields constants as they aren't ever modified or used outside the class.

Make two fields constants as they aren't ever modified or used outside the class.
Use TryGetValue() instead of ContainsKey() + indexer.
@ghost ghost added the area-servers label Jul 6, 2020
Update to one-liner as suggested.

Co-authored-by: Chris Ross <Tratcher@Outlook.com>
@Tratcher Tratcher merged commit 54bd692 into dotnet:master Jul 7, 2020
@Tratcher
Copy link
Member

Tratcher commented Jul 7, 2020

Thanks

@Tratcher Tratcher added this to the 5.0.0-preview8 milestone Jul 7, 2020
@martincostello martincostello deleted the TokenExtensions-Perf branch July 7, 2020 07:03
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants