Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is TryFind for IDictionary? #508

Open
tinytownsoftware opened this issue Jun 19, 2023 · 1 comment
Open

Where is TryFind for IDictionary? #508

tinytownsoftware opened this issue Jun 19, 2023 · 1 comment

Comments

@tinytownsoftware
Copy link
Contributor

Does anyone know why it's not available for .Net Core? While it's not a big deal to cast my dictionary to an IReadOnlyDictionary and then call TryFind, I was wondering why it was not there.

@seangwright
Copy link
Contributor

System.Collections.Dictionary<T,U> implements IReadOnlyDictionary, so you shouldn't need to perform any casts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants