Universal.Common 8.1.2

Install-Package Universal.Common -Version 8.1.2
dotnet add package Universal.Common --version 8.1.2
<PackageReference Include="Universal.Common" Version="8.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Universal.Common --version 8.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Universal.Common, 8.1.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Universal.Common as a Cake Addin
#addin nuget:?package=Universal.Common&version=8.1.2

// Install Universal.Common as a Cake Tool
#tool nuget:?package=Universal.Common&version=8.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Universal.Common

Support utilities and extensions meant to extend the default functionality from the base class library.

Quickstart

BitSequence

Utility for as-is bit manipulations.

BitSequence bs1 = new BitSequence("10001010"); // Binary representation in string.
BitSequence bs2 = new BitSequence(new bool[] { true, false, true }); // As booleans.
BitSequence bs3 = bs1 & "11110000"; // Bitwise and, implicit conversion from binary representation string.

BitStream

Utility to perform bit-level operations on System.IO.Stream.

using (BitStream bitStream = new BitStream(stream)) 
{
    uint value = bitStream.ReadUInt32(4); // Reads 4 bits from the stream and interprets it as an unsigned integer, padding if necessary.
}

UriBuilder

Derived from System.UriBuilder, this class provides a fluent API to configure segments and queries.

UriBuilder uriBuilder = new UriBuilder("http://www.myhost.com");
uriBuilder
    .AddSegments("api", "Product", 1)
    .AddQuery("key", "value");
// "https://www.myhost.com/api/Product/1?key=value"

ZigZag

Static class that encodes arrays to matrices and vice-versa.

int[,] matrix = new int[,] { { 0, 1 }, { 2, 3 } };
int[] array = ZigZag.ToArray(matrix); // [0, 1, 2, 3]
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (34)

Showing the top 5 NuGet packages that depend on Universal.Common:

Package Downloads
Universal.Android

Class library for accelerating Xamarin.Android development. Note: If you encounter layout inflation exceptions (could be masked as NotFoundException, or some issue with text_color_secondary.xml etc), make sure you define colorControlNormal and use a style with that attribute defined.

Universal.Common.Reflection

Class library for performing advanced operations with types, dynamic objects, expressions, and reflection.

Universal.Common.Serialization

Class library with base objects that provide serializable to and from XML and JSON strings and binary serialization using the native binary formatter.

Universal.Common.Net.Http

Class library to build clients and work with HTTP web services.

Universal.Common.Mathematics

Class library implementing advanced mathematical algorithms, transforms, and time series manipulations. Implementations favour simplicity and correctness.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.1.2 635 10/24/2021
8.1.1 185 10/23/2021
8.1.0 193 10/23/2021
8.0.0 888 10/13/2021
7.7.1 1,229 8/24/2021
7.7.0 132 8/24/2021
7.6.2 155 8/19/2021
7.6.1 1,410 6/17/2021
7.6.0 567 6/3/2021
7.5.7 642 4/30/2021
7.5.6 172 4/29/2021
7.5.5 410 4/13/2021
7.5.4 1,194 3/31/2021
7.5.3 444 3/21/2021
7.5.2 364 3/15/2021
7.5.1 321 2/16/2021
7.5.0 4,323 2/5/2021
7.4.6 170 2/2/2021
7.4.5.1 560 1/15/2021
7.4.5 288 1/13/2021
7.4.4 581 1/7/2021
7.4.3 785 12/16/2020
7.4.2.1 271 12/15/2020
7.4.2 243 12/9/2020
7.4.1 1,439 11/26/2020
7.4.0 204 11/26/2020
7.3.5 1,077 11/23/2020
7.3.4 904 11/11/2020
7.3.3 264 11/11/2020
7.3.2 428 11/1/2020
7.3.1.1 1,697 10/19/2020
7.3.1 230 10/15/2020
7.3.0 225 10/15/2020
7.2.2 1,118 9/29/2020
7.2.1 349 9/29/2020
7.2.0 235 9/29/2020
7.1.1.1 282 9/28/2020
7.1.1 311 9/25/2020
7.1.0 789 9/2/2020
7.0.0 1,902 8/24/2020
6.4.7 280 8/21/2020
6.4.6 292 8/21/2020
6.4.5 7,130 5/21/2020
6.4.4 1,031 5/12/2020
6.4.3 1,128 4/23/2020
6.4.2 286 4/20/2020
6.4.1.2 6,080 3/20/2020
6.4.1.1 290 3/20/2020
6.4.1 294 3/20/2020
6.4.0 2,217 2/25/2020
6.3.5 423 2/21/2020
6.3.4 384 2/21/2020
6.3.3 1,797 2/11/2020
6.3.2 374 2/11/2020
6.3.1.1 3,307 1/23/2020
6.3.0 2,400 12/18/2019
6.2.7 1,095 12/17/2019
6.2.6 561 12/4/2019
6.2.5 365 12/4/2019
6.2.4 1,532 12/1/2019
6.2.3 4,387 10/25/2019
6.2.2 1,612 10/8/2019
6.2.1 524 10/7/2019
6.2.0.1 1,485 9/25/2019
6.2.0 884 9/20/2019
6.1.5 1,361 9/16/2019
6.1.4.1 853 9/9/2019
6.1.4 862 9/3/2019
6.1.3 344 9/2/2019
6.1.2 447 8/28/2019
6.1.1 3,433 7/9/2019
6.1.0.1 8,971 7/5/2019
6.1.0 6,638 5/7/2019
6.0.6 894 5/3/2019
6.0.5 498 5/2/2019
6.0.4 1,638 4/24/2019
6.0.3 546 4/24/2019
6.0.2 3,189 3/22/2019
6.0.1.2 787 3/12/2019
6.0.1.1 476 3/12/2019
6.0.1 461 3/11/2019
6.0.0 800 3/6/2019
5.3.6 424 3/5/2019
5.3.5 407 3/5/2019
5.3.4 930 3/4/2019
5.3.3 790 2/28/2019
5.3.2 674 2/27/2019
5.3.1.1 516 2/25/2019
5.3.1 443 2/25/2019
5.3.0 416 2/25/2019
5.2.1 1,077 2/16/2019
5.2.0.1 1,670 2/7/2019
5.1.8 493 2/7/2019
5.1.7.1 579 1/30/2019
5.1.7 467 1/30/2019
5.1.6.1 500 1/24/2019
5.1.6 508 1/23/2019
5.1.5 467 1/23/2019
5.1.4.2 543 1/18/2019
5.1.3 819 1/14/2019
5.1.2 5,248 1/8/2019
5.1.1.1 526 1/8/2019
5.1.1 495 1/6/2019
5.1.0 810 1/2/2019
5.0.2 508 12/31/2018
5.0.1.1 503 12/31/2018
5.0.1 485 12/31/2018
5.0.0.1 586 12/14/2018
5.0.0 1,083 12/10/2018
4.2.5 525 11/23/2018
4.2.4 527 11/23/2018
4.2.3.1 534 11/22/2018
4.2.3 486 11/22/2018
4.2.2.2 645 11/19/2018
4.2.2.1 2,408 10/2/2018
4.2.2 560 10/1/2018
4.2.1.2 575 10/1/2018
4.2.1.1 555 9/27/2018
4.2.1 506 9/26/2018
4.2.0.5 536 9/26/2018
4.2.0.4 543 9/25/2018
4.2.0.3 546 9/25/2018
4.2.0.2 552 9/25/2018
4.2.0.1 538 9/25/2018
4.2.0 593 9/24/2018
4.1.0 506 9/21/2018
4.0.0.6 541 9/18/2018
4.0.0.5 562 9/18/2018
4.0.0.4 568 9/17/2018
4.0.0.3 1,280 9/7/2018
4.0.0.2 729 9/4/2018
4.0.0.1 739 9/4/2018
4.0.0 1,416 8/30/2018
3.2.0 888 8/28/2018
3.1.0 549 8/28/2018
3.0.6 767 8/27/2018
3.0.5 525 8/27/2018
3.0.4 542 8/27/2018
3.0.3 571 8/24/2018
3.0.2 675 8/24/2018
3.0.1.2 567 8/23/2018
3.0.1.1 609 8/21/2018
3.0.1 586 8/21/2018
3.0.0 1,221 8/16/2018
2.2.1 628 8/15/2018
2.2.0 575 8/14/2018
2.1.0 592 8/13/2018
2.0.2 640 8/7/2018
2.0.1 806 5/10/2018
2.0.0 1,109 4/26/2018
1.5.3.7 1,618 1/27/2018
1.5.3.6 704 1/15/2018
1.5.3.5 707 1/8/2018
1.5.3.4 708 1/3/2018
1.5.3.3 717 1/3/2018
1.5.3.2 712 12/27/2017
1.5.3.1 733 12/25/2017
1.5.3 684 12/25/2017
1.5.2 686 12/24/2017
1.5.1 719 12/23/2017
1.5.0 670 12/22/2017
1.4.7 618 12/2/2017
1.4.6 1,512 11/28/2017
1.4.5 724 11/28/2017
1.4.0 853 11/12/2017
1.3.5 2,661 11/8/2017
1.3.4 854 11/8/2017
1.3.3 903 11/2/2017
1.3.2 857 11/2/2017
1.3.1 876 9/12/2017
1.3.0 786 8/26/2017
1.2.1 676 8/23/2017
1.2.0 747 8/17/2017
1.1.1 676 8/17/2017
1.1.0 683 8/17/2017
1.0.0 825 8/12/2017

Fixed implementation of BitSequence's GetHashCode to return equal hash codes for equal sequences.