Skip to content

Conversation

@TonyTroeff
Copy link
Member

Pull Request Description

Added a new overload for the .OrEmptyIfNull() and .AsReadOnlyCollection() methods that targets IList<T> instances.

Motivation and Context

The .AsReadOnlyCollection() method includes a .ToList() call. It will be unnecessary if we already have a list instance.

Checklist

  • I have tested these changes thoroughly.
  • I have added/updated relevant documentation.
  • My code follows the project's coding guidelines.
  • I have performed a self-review of my changes.
  • My changes are backwards compatible.

@TonyTroeff TonyTroeff added the enhancement A non-essential complement to a feature or a task label Jul 21, 2024
@TonyTroeff TonyTroeff self-assigned this Jul 21, 2024
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A non-essential complement to a feature or a task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants