.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
This PR removes the dependency on System.Linq from CommunityToolkit.Diagnostics. This will help reduce binary size in NAOT builds using any of the Guard APIs, or the ToTypeString() extension directly, especially with default settings.
PR Checklist
[X] Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
[X] Based off latest main branch of toolkit
[X] PR doesn't include merge commits (always rebase on top of our main, if needed)
See https://github.com/dotnet/runtime/issues/82607#issuecomment-1444443656
This PR removes the dependency on
System.Linq
fromCommunityToolkit.Diagnostics
. This will help reduce binary size in NAOT builds using any of theGuard
APIs, or theToTypeString()
extension directly, especially with default settings.PR Checklist