Unified Utility Library Underscore.cs


Keywords
port, utility, underscore, library, async, functional, string, reflection, collection, list
License
MIT
Install
Install-Package Underscore.cs -Version 1.0.0.1

Documentation

Underscore.cs

Started out as a port of the open source JavaScript Library Underscore.js to C#, but now is really a library (or helper object) inspired by underscore.js

Getting Started

Solution is available as a NuGet package

Install-Package Underscore.cs

An overview of the project's modules and capabilities can be found here.

More specific API documentation with examples for each function can be found in the documents here.

Here is a simple example of using the library's list chunking and random:

            var chainOCommand = _approvers.Zip(
                _.List.Chunk(_workers,
                    _.Utility.Random(2, 3)
                    ),
                (approver, workerChunk) => new
                {
                    Approver = approver,
                    Workers = workerChunk
                })
                .ToDictionary(
                    a => a.Approver,
                    a => a.Workers
             );