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

Implement IRefEnumerator<T*> in HashSet Enumerator #1982

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

disarray2077
Copy link
Contributor

@disarray2077 disarray2077 commented May 17, 2024

This PR implements the IRefEnumerator<T*> interface in the HashSet Enumerator.

I'm not sure if the absence of this enumerator was intentional, but I suppose it would make sense if you didn't want the user to be able to modify the value via the Enumerator. However, considering that the TryAdd method already permits altering the value after insertion into the HashSet, it might be worth reconsidering the necessity of omitting the enumerator.

@bfiete
Copy link
Collaborator

bfiete commented Jun 30, 2024

It wasn't intentionally omitted.

@bfiete bfiete merged commit 6038c9c into beefytech:master Jun 30, 2024
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

Successfully merging this pull request may close these issues.

2 participants