Universal.Common
8.2.2
dotnet add package Universal.Common --version 8.2.2
NuGet\Install-Package Universal.Common -Version 8.2.2
<PackageReference Include="Universal.Common" Version="8.2.2" />
paket add Universal.Common --version 8.2.2
#r "nuget: Universal.Common, 8.2.2"
// Install Universal.Common as a Cake Addin
#addin nuget:?package=Universal.Common&version=8.2.2
// Install Universal.Common as a Cake Tool
#tool nuget:?package=Universal.Common&version=8.2.2
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]
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net6.0
- No dependencies.
NuGet packages (33)
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.2.2 | 1,082 | 11/23/2022 |
8.2.1 | 291 | 11/22/2022 |
8.2.0 | 3,521 | 9/14/2022 |
8.1.2 | 10,423 | 10/24/2021 |
8.1.1 | 376 | 10/23/2021 |
8.1.0 | 389 | 10/23/2021 |
8.0.0 | 5,927 | 10/13/2021 |
7.7.1 | 3,086 | 8/24/2021 |
7.7.0 | 321 | 8/24/2021 |
7.6.2 | 344 | 8/19/2021 |
7.6.1 | 8,572 | 6/17/2021 |
7.6.0 | 1,145 | 6/3/2021 |
7.5.7 | 1,667 | 4/30/2021 |
7.5.6 | 354 | 4/29/2021 |
7.5.5 | 598 | 4/13/2021 |
7.5.4 | 2,390 | 3/31/2021 |
7.5.3 | 3,286 | 3/21/2021 |
7.5.2 | 1,039 | 3/15/2021 |
7.5.1 | 742 | 2/16/2021 |
7.5.0 | 11,884 | 2/5/2021 |
7.4.6 | 378 | 2/2/2021 |
7.4.5.1 | 1,203 | 1/15/2021 |
7.4.5 | 559 | 1/13/2021 |
7.4.4 | 1,191 | 1/7/2021 |
7.4.3 | 1,490 | 12/16/2020 |
7.4.2.1 | 447 | 12/15/2020 |
7.4.2 | 433 | 12/9/2020 |
7.4.1 | 2,640 | 11/26/2020 |
7.4.0 | 420 | 11/26/2020 |
7.3.5 | 2,168 | 11/23/2020 |
7.3.4 | 1,456 | 11/11/2020 |
7.3.3 | 464 | 11/11/2020 |
7.3.2 | 736 | 11/1/2020 |
7.3.1.1 | 3,065 | 10/19/2020 |
7.3.1 | 435 | 10/15/2020 |
7.3.0 | 428 | 10/15/2020 |
7.2.2 | 2,055 | 9/29/2020 |
7.2.1 | 568 | 9/29/2020 |
7.2.0 | 446 | 9/29/2020 |
7.1.1.1 | 499 | 9/28/2020 |
7.1.1 | 529 | 9/25/2020 |
7.1.0 | 1,361 | 9/2/2020 |
7.0.0 | 4,261 | 8/24/2020 |
6.4.7 | 495 | 8/21/2020 |
6.4.6 | 504 | 8/21/2020 |
6.4.5 | 15,381 | 5/21/2020 |
6.4.4 | 1,295 | 5/12/2020 |
6.4.3 | 1,442 | 4/23/2020 |
6.4.2 | 461 | 4/20/2020 |
6.4.1.2 | 12,529 | 3/20/2020 |
6.4.1.1 | 514 | 3/20/2020 |
6.4.1 | 508 | 3/20/2020 |
6.4.0 | 3,506 | 2/25/2020 |
6.3.5 | 662 | 2/21/2020 |
6.3.4 | 567 | 2/21/2020 |
6.3.3 | 2,260 | 2/11/2020 |
6.3.2 | 570 | 2/11/2020 |
6.3.1.1 | 5,279 | 1/23/2020 |
6.3.0 | 3,497 | 12/18/2019 |
6.2.7 | 1,522 | 12/17/2019 |
6.2.6 | 978 | 12/4/2019 |
6.2.5 | 651 | 12/4/2019 |
6.2.4 | 2,858 | 12/1/2019 |
6.2.3 | 8,058 | 10/25/2019 |
6.2.2 | 2,859 | 10/8/2019 |
6.2.1 | 876 | 10/7/2019 |
6.2.0.1 | 2,542 | 9/25/2019 |
6.2.0 | 1,521 | 9/20/2019 |
6.1.5 | 2,065 | 9/16/2019 |
6.1.4.1 | 1,483 | 9/9/2019 |
6.1.4 | 1,453 | 9/3/2019 |
6.1.3 | 533 | 9/2/2019 |
6.1.2 | 692 | 8/28/2019 |
6.1.1 | 6,185 | 7/9/2019 |
6.1.0.1 | 18,029 | 7/5/2019 |
6.1.0 | 11,744 | 5/7/2019 |
6.0.6 | 1,215 | 5/3/2019 |
6.0.5 | 768 | 5/2/2019 |
6.0.4 | 2,650 | 4/24/2019 |
6.0.3 | 831 | 4/24/2019 |
6.0.2 | 5,545 | 3/22/2019 |
6.0.1.2 | 1,270 | 3/12/2019 |
6.0.1.1 | 738 | 3/12/2019 |
6.0.1 | 716 | 3/11/2019 |
6.0.0 | 1,308 | 3/6/2019 |
5.3.6 | 655 | 3/5/2019 |
5.3.5 | 644 | 3/5/2019 |
5.3.4 | 1,638 | 3/4/2019 |
5.3.3 | 1,230 | 2/28/2019 |
5.3.2 | 1,110 | 2/27/2019 |
5.3.1.1 | 780 | 2/25/2019 |
5.3.1 | 652 | 2/25/2019 |
5.3.0 | 633 | 2/25/2019 |
5.2.1 | 1,746 | 2/16/2019 |
5.2.0.1 | 2,381 | 2/7/2019 |
5.1.8 | 700 | 2/7/2019 |
5.1.7.1 | 861 | 1/30/2019 |
5.1.7 | 698 | 1/30/2019 |
5.1.6.1 | 709 | 1/24/2019 |
5.1.6 | 710 | 1/23/2019 |
5.1.5 | 697 | 1/23/2019 |
5.1.4.2 | 760 | 1/18/2019 |
5.1.3 | 1,249 | 1/14/2019 |
5.1.2 | 5,870 | 1/8/2019 |
5.1.1.1 | 743 | 1/8/2019 |
5.1.1 | 714 | 1/6/2019 |
5.1.0 | 1,183 | 1/2/2019 |
5.0.2 | 729 | 12/31/2018 |
5.0.1.1 | 722 | 12/31/2018 |
5.0.1 | 704 | 12/31/2018 |
5.0.0.1 | 848 | 12/14/2018 |
5.0.0 | 1,754 | 12/10/2018 |
4.2.5 | 764 | 11/23/2018 |
4.2.4 | 766 | 11/23/2018 |
4.2.3.1 | 762 | 11/22/2018 |
4.2.3 | 734 | 11/22/2018 |
4.2.2.2 | 948 | 11/19/2018 |
4.2.2.1 | 3,759 | 10/2/2018 |
4.2.2 | 803 | 10/1/2018 |
4.2.1.2 | 829 | 10/1/2018 |
4.2.1.1 | 814 | 9/27/2018 |
4.2.1 | 757 | 9/26/2018 |
4.2.0.5 | 793 | 9/26/2018 |
4.2.0.4 | 786 | 9/25/2018 |
4.2.0.3 | 803 | 9/25/2018 |
4.2.0.2 | 830 | 9/25/2018 |
4.2.0.1 | 804 | 9/25/2018 |
4.2.0 | 875 | 9/24/2018 |
4.1.0 | 762 | 9/21/2018 |
4.0.0.6 | 804 | 9/18/2018 |
4.0.0.5 | 832 | 9/18/2018 |
4.0.0.4 | 813 | 9/17/2018 |
4.0.0.3 | 2,002 | 9/7/2018 |
4.0.0.2 | 1,053 | 9/4/2018 |
4.0.0.1 | 1,114 | 9/4/2018 |
4.0.0 | 2,267 | 8/30/2018 |
3.2.0 | 1,436 | 8/28/2018 |
3.1.0 | 801 | 8/28/2018 |
3.0.6 | 1,179 | 8/27/2018 |
3.0.5 | 794 | 8/27/2018 |
3.0.4 | 814 | 8/27/2018 |
3.0.3 | 832 | 8/24/2018 |
3.0.2 | 982 | 8/24/2018 |
3.0.1.2 | 815 | 8/23/2018 |
3.0.1.1 | 855 | 8/21/2018 |
3.0.1 | 823 | 8/21/2018 |
3.0.0 | 1,627 | 8/16/2018 |
2.2.1 | 889 | 8/15/2018 |
2.2.0 | 848 | 8/14/2018 |
2.1.0 | 854 | 8/13/2018 |
2.0.2 | 889 | 8/7/2018 |
2.0.1 | 1,147 | 5/10/2018 |
2.0.0 | 1,614 | 4/26/2018 |
1.5.3.7 | 2,411 | 1/27/2018 |
1.5.3.6 | 1,023 | 1/15/2018 |
1.5.3.5 | 976 | 1/8/2018 |
1.5.3.4 | 987 | 1/3/2018 |
1.5.3.3 | 1,002 | 1/3/2018 |
1.5.3.2 | 990 | 12/27/2017 |
1.5.3.1 | 1,022 | 12/25/2017 |
1.5.3 | 972 | 12/25/2017 |
1.5.2 | 973 | 12/24/2017 |
1.5.1 | 992 | 12/23/2017 |
1.5.0 | 949 | 12/22/2017 |
1.4.7 | 871 | 12/2/2017 |
1.4.6 | 2,241 | 11/28/2017 |
1.4.5 | 1,040 | 11/28/2017 |
1.4.0 | 1,102 | 11/12/2017 |
1.3.5 | 3,499 | 11/8/2017 |
1.3.4 | 1,123 | 11/8/2017 |
1.3.3 | 1,167 | 11/2/2017 |
1.3.2 | 1,108 | 11/2/2017 |
1.3.1 | 1,142 | 9/12/2017 |
1.3.0 | 1,044 | 8/26/2017 |
1.2.1 | 933 | 8/23/2017 |
1.2.0 | 1,013 | 8/17/2017 |
1.1.1 | 940 | 8/17/2017 |
1.1.0 | 962 | 8/17/2017 |
1.0.0 | 1,205 | 8/12/2017 |
IDictionary<TKey, TValue>.GetValueOrDefault() extension method.