Skip to content

This package provides an easy way to randomly remove and return elements from an IEnumerable<T> implementation, such as a List<T> object.

License

Notifications You must be signed in to change notification settings

Igor03/list-picker

Repository files navigation

List Picker

Description

This package provides an easy way to randomly remove and return elements from an IEnumerable implementation, such as a List object.

Languages & Technologies

Usage

  • Instantiate a class of type ListPicker
  • Access the method PickElements from the instatiated class
  • Pass, as parameters, an instance of any implementation of IEnumerable <T> such as a List<T>, pass the number of elements you want pick from the list and, optionally, pass a Func<T, bool> that represents a condition to pick an element.

See the Samples Project in the repository files for examples.

Test Coverage

In the folder TestResults we have a detailed report with the unit tests' code coverage

Nuget

This package can also be accessed through Nuget Package Manager by the nome of JIgor.Projects.ListPicker.

Through CLI

Install-Package JIgor.Projects.ListPicker -Version 1.0.0

About

This package provides an easy way to randomly remove and return elements from an IEnumerable<T> implementation, such as a List<T> object.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages