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

Add .NET 6.0 TFM #25

Merged
merged 11 commits into from
Nov 11, 2021
Merged

Add .NET 6.0 TFM #25

merged 11 commits into from
Nov 11, 2021

Conversation

thomaslevesque
Copy link
Owner

@thomaslevesque thomaslevesque commented Nov 11, 2021

Fixes #24

  • Add a new net60 TFM
  • Change methods that conflict with new .NET 6.0 methods, so that they're no longer extension methods, and mark them as obsolete (in the net60 TFM only). Affected methods:
    • DistinctBy
    • UnionBy
    • Min and Max overloads that accept an IComparer<T>
    • MinBy and MaxBy
    • FirstOrDefault, LastOrDefault, and SingleOrDefault overloads that accept an explicit default value
  • Make Batch obsolete in the net60 TFM (.NET 6.0 introduced Chunk, which does the same thing)
  • Reintroduce Append, Prepend and ToHashSet, using the same approach. (also reintroduce the net471 and net472 TFMs)

@thomaslevesque thomaslevesque changed the title Hide methods that conflict with new .NET 6.0 methods Add .NET 6.0 TFM Nov 11, 2021
@thomaslevesque thomaslevesque merged commit 96a4f4b into master Nov 11, 2021
@thomaslevesque thomaslevesque deleted the net60 branch November 11, 2021 23:13
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.

Investigate necessary changes for .NET 6.0
1 participant