Jakar.Extensions 8.12.2

dotnet add package Jakar.Extensions --version 8.12.2
NuGet\Install-Package Jakar.Extensions -Version 8.12.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Jakar.Extensions" Version="8.12.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jakar.Extensions --version 8.12.2
#r "nuget: Jakar.Extensions, 8.12.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Jakar.Extensions as a Cake Addin
#addin nuget:?package=Jakar.Extensions&version=8.12.2

// Install Jakar.Extensions as a Cake Tool
#tool nuget:?package=Jakar.Extensions&version=8.12.2

Jakar.Extensions

Contributions and Ideas are Welcome.

Overview

Jakar.Extensions is a .NET library that includes a variety of extensions and helper methods designed to streamline and enhance the development process. This package provides utility functions for common tasks, making your code cleaner and more maintainable.

Installation

You can install the Jakar.Extensions package via Nuget:

dotnet add package Jakar.Extensions

Alternatively, you can use the NuGet Package Manager in Visual Studio.

Features and Hhighlights of the extensions provided by this package.

Base classes

  • ObservableClass : A base class that implements the INotifyPropertyChanged and INotifyPropertyChanging interface.
  • ObservableRecord : A base record that implements the INotifyPropertyChanged and INotifyPropertyChanging interface.

Collection

  • ObservableConcurrentDictionary : A thread-safe dictionary that supports change notifications.
  • ObservableDictionary : A dictionary that supports change notifications.
  • ConcurrentObservableCollection : A thread-safe collection that supports change notifications.
  • ConcurrentHashSet : A thread-safe hash set.
  • ConcurrentDeque : A thread-safe queue.
  • FixedSizedDeque : A fixed-size deque.
  • FixedSizedQueue : A fixed-size queue.

HTTP

  • WebRequester : A wrapper for System.Net.Http.HttpClient that simplifies the process of making HTTP requests and accepts an IHostInfo object to provide the base Uri. Also supports automatic retries.
  • WebHandler : An intermediate class that provides a way to handle the response from the WebRequester class.
  • WebResponse : The representation of the response from the WebRequester class.
  • Status : An enumration of the possible HTTP status codes.
  • MimeType : An enumeration of the possible MIME types.
  • MimeTypeNames : The equivalent string representation of the MimeType enumration.

Miscellaneous

  • SecuredString : A class that provides a way to store sensitive data in memory securely.
  • Validate : A static class that provides a way to validate various strings and states.
  • Tasks : A static class that provides a way to handle tasks such as SafeFireAndForget.
  • TypeExtensions : A static class that provides methods to see if they are ISet, IList or IDictionary and get the types or see if its a built in class or struct, or if its nullable.
  • IDataProtector and IDataProtectorProvider : A class to encrypt and decrypt strings.
  • ErrorOrResult : A struct that represents a result or an error.
  • LocalFile : A class that provides a way to easily handle local files such as reading and writing.
  • LocalDirectory : A class that provides a way to easily manage local directories such as creating and deleting, and getting files.
  • PasswordValidator : A class that provides an efficient way to validate passwords.
  • LoginRequest : A standard way to handle login requests.

AsyncLinq

Many of the following methods have overloads:

  • Average
  • AsAsyncEnumerable
  • IsEmpty
  • ToHashSet
  • ToList
  • GetArray
  • ToArray
  • Sorted
  • ToObservableCollection
  • Enumerate
  • EnumeratePairs
  • Append
  • Prepend
  • Cast
  • CastSafe
  • Distinct
  • DistinctBy
  • Skip
  • SkipLast
  • SkipWhile
  • Where
  • Select
  • Consolidate
  • ConsolidateUnique
  • WhereNotNull
  • WhereNotNullAsync
  • All
  • Any
  • ForEachAsync
  • ForEachParallelAsync
  • WhenAllParallelAsync
  • ForEach
  • ForEachParallel
  • Max
  • Min
  • Add
  • AddOrUpdate
  • Remove
  • TryAdd
  • AddDefault
  • Random
  • RandomValues
  • RandomKeys
  • Range
  • First
  • FirstOrDefault
  • Last
  • LastOrDefault
  • Single
  • SingleOrDefault

Hashes

Many of the following methods have overloads:

  • GetHash
  • Hash128
  • Hash
  • ToBytes
  • Hash_MD5
  • Hash_SHA1
  • Hash_SHA256
  • Hash_SHA384
  • Hash_SHA512
  • HashAsync
  • HashAsync_MD5
  • HashAsync_SHA1
  • HashAsync_SHA256
  • HashAsync_SHA384
  • HashAsync_SHA512

Types

Many of the following methods have overloads:

  • GetJsonIsRequired
  • GetJsonProperty
  • GetJsonKey
  • IsAnyBuiltInType
  • IsBuiltInNullableType
  • IsBuiltInType
  • IsGenericType
  • IsNullableType
  • IsInitOnly
  • IsEqualType
  • IsOneOfType
  • Construct
  • HasInterface
  • IsCollection
  • IsDictionary
  • IsDictionaryEntry
  • IsKeyValuePair
  • IsList
  • IsSet
  • MethodInfo
  • GetParameterInfo
  • MethodName
  • MethodSignature
  • MethodClass
  • IsNullable
  • TryGetUnderlyingEnumType

Spans

Many of the following methods have overloads:

  • Average
  • ContainsAny
  • ContainsAnyExcept
  • IndexOfAnyExcept
  • IndexOfAny
  • LastIndexOfAny
  • LastIndexOfAnyExcept
  • Contains
  • ContainsAll
  • ContainsNone
  • EndsWith
  • StartsWith
  • AsBytes
  • IsNullOrWhiteSpace
  • SequenceEqualAny
  • SequenceEqual
  • LastIndexOf
  • Enumerate
  • AsSpan
  • AsReadOnlySpan
  • CopyTo
  • TryCopyTo
  • CreateSpan
  • CreateValue
  • Create
  • QuickSort
  • First
  • FirstOrDefault
  • All
  • Any
  • Single
  • SingleOrDefault
  • Where
  • WhereValues
  • Select
  • SelectValues
  • Count
  • Join
  • Max
  • ToMemoryStream
  • AsMemory
  • AsReadOnlyMemory
  • AsArraySegment
  • TryAsSegment
  • ToMemory
  • ToReadOnlyMemory
  • ConvertToString
  • Min
  • As
  • Replace
  • RemoveAll
  • Slice
  • Sum
  • Trim
  • TrimEnd
  • TrimStart
  • ClampStart
  • ClampEnd

License

This project is licensed under the MIT License. See the LICENSE.txt file for details. Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Product 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 is compatible.  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.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Jakar.Extensions:

Package Downloads
Jakar.Database

Package Description

Jakar.Extensions.Blazor

Extensions to aid in development.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.12.2 90 6/19/2024
8.12.1 76 6/18/2024
8.12.0 96 6/17/2024
8.11.9 81 6/14/2024
8.11.8 77 6/14/2024
8.11.7 77 6/13/2024
8.11.6 77 6/13/2024
8.11.5 77 6/8/2024
8.11.4 69 6/8/2024
8.11.3 74 6/6/2024
8.11.2 74 5/31/2024
8.11.1 81 5/31/2024
8.11.0 76 5/31/2024
8.10.4 100 5/21/2024
8.10.3 87 5/14/2024
8.10.2 112 5/2/2024
8.10.1 76 5/2/2024
8.10.0 67 5/1/2024
8.9.1 65 5/1/2024
8.9.0 116 4/30/2024
8.8.2 89 4/29/2024
8.8.1 93 4/29/2024
8.8.0 76 4/29/2024
8.7.1 112 4/28/2024
8.7.0 80 4/28/2024
8.6.0 120 4/26/2024
8.5.0 103 4/26/2024
8.4.0 106 4/25/2024
8.3.3 86 4/24/2024
8.3.2 94 4/23/2024
8.3.1 100 4/9/2024
8.3.0 87 4/9/2024
8.2.11 80 4/8/2024
8.2.10 90 4/5/2024
8.2.9 116 4/4/2024
8.2.8 86 4/4/2024
8.2.7 87 4/4/2024
8.2.6 112 4/4/2024
8.2.5 97 4/4/2024
8.2.4 108 4/4/2024
8.2.3 92 4/4/2024
8.2.2 112 4/4/2024
8.2.0 103 4/4/2024
8.1.0 116 4/3/2024
8.0.3 106 4/3/2024
8.0.2 85 4/3/2024
8.0.1 109 4/3/2024
8.0.0 114 4/2/2024
7.7.1 121 4/1/2024
7.7.0 114 4/1/2024
7.6.6 187 2/27/2024
7.6.5 341 1/2/2024
7.6.4 277 1/2/2024
7.6.3 334 1/2/2024
7.6.2 333 12/22/2023
7.6.1 383 12/19/2023
7.6.0 393 12/13/2023
7.5.2 388 12/9/2023
7.5.1 404 12/9/2023
7.5.0 372 12/9/2023
7.4.0 398 12/8/2023
7.3.2 366 12/5/2023
7.3.1 367 12/5/2023
7.3.0 361 12/5/2023
7.2.0 444 12/1/2023
7.1.1 456 11/30/2023
7.1.0 393 11/30/2023
7.0.0 381 11/15/2023
6.9.2 426 11/5/2023
6.9.1 481 10/31/2023
6.9.0 424 10/31/2023
6.8.8 441 10/10/2023
6.8.7 491 10/3/2023
6.8.6 477 9/21/2023
6.8.5 438 9/21/2023
6.8.4 450 9/17/2023
6.8.3 595 8/29/2023
6.8.2 524 8/21/2023
6.8.1 702 7/14/2023
6.8.0 629 6/27/2023
6.7.30 651 6/27/2023
6.7.29 709 5/22/2023
6.7.28 666 5/8/2023
6.7.27 746 5/1/2023
6.7.26 724 5/1/2023
6.7.25 749 5/1/2023
6.7.24 715 4/30/2023
6.7.23 750 4/26/2023
6.7.22 623 4/25/2023
6.7.21 745 4/17/2023
6.7.20 752 3/31/2023
6.7.19 698 3/30/2023
6.7.18 852 3/30/2023
6.7.17 736 3/23/2023
6.7.16 702 3/22/2023
6.7.15 683 3/22/2023
6.7.14 734 3/22/2023
6.7.13 812 3/17/2023
6.7.12 781 3/17/2023
6.7.11 776 3/16/2023
6.7.10 779 3/16/2023
6.7.9 735 3/10/2023
6.7.8 848 3/6/2023
6.7.7 790 3/4/2023
6.7.6 788 3/4/2023
6.7.5 979 3/4/2023
6.7.4 779 3/3/2023
6.7.3 1,059 3/3/2023
6.7.2 933 3/1/2023
6.7.1 1,028 3/1/2023
6.6.4 979 2/15/2023
6.6.3 789 2/15/2023
6.6.2 959 2/15/2023
6.6.1 801 2/15/2023
6.6.0 811 2/12/2023
6.5.1 1,092 1/27/2023
6.4.4 1,085 1/21/2023
6.4.3 786 1/21/2023
6.4.2 918 12/1/2022
6.4.1 928 12/1/2022
6.4.0 1,062 11/21/2022
6.3.2 949 11/16/2022
6.3.1 911 11/14/2022
6.3.0 929 11/14/2022
6.2.2 1,174 11/11/2022
6.2.1 875 11/11/2022
6.2.0 962 11/11/2022
6.1.4 1,064 10/17/2022
6.1.3 1,027 10/11/2022
6.1.2 974 10/9/2022
6.1.1 899 10/6/2022
6.1.0 989 10/6/2022
6.0.5 1,015 10/4/2022
6.0.4 1,007 10/1/2022
6.0.3 975 9/30/2022
6.0.2 1,114 9/22/2022
6.0.1 974 9/22/2022
6.0.0.69-beta 699 9/20/2022
6.0.0.68-beta 713 9/19/2022
6.0.0.67-beta 646 9/19/2022
6.0.0.66-beta 709 9/19/2022
6.0.0.65-beta 689 9/17/2022
6.0.0.64-beta 663 9/16/2022
6.0.0.63-beta 660 9/15/2022
6.0.0.62-beta 749 9/14/2022
6.0.0.61-beta 720 9/14/2022
6.0.0.60-beta 749 9/13/2022
6.0.0.59-beta 806 9/13/2022
6.0.0.58-beta 887 9/13/2022
6.0.0.57-beta 641 9/11/2022
6.0.0.56-beta 633 9/11/2022
6.0.0.55-beta 687 9/8/2022
6.0.0.54-beta 690 9/6/2022
6.0.0.53-beta 644 9/5/2022
6.0.0.52-beta 619 9/1/2022
6.0.0.51-beta 659 8/31/2022
6.0.0.50-beta 628 8/30/2022
6.0.0.49-beta 678 8/30/2022
6.0.0.48-beta 658 8/30/2022
6.0.0.47-beta 638 8/29/2022
6.0.0.46-beta 635 8/21/2022
6.0.0.45-beta 644 8/16/2022
6.0.0.44-beta 670 8/15/2022
6.0.0.43-beta 656 8/13/2022
6.0.0.42-beta 671 8/10/2022
6.0.0.41-beta 660 8/5/2022
6.0.0.40-beta 645 8/4/2022
6.0.0.39-beta 621 8/4/2022
6.0.0.38-beta 630 8/3/2022
6.0.0.37-beta 681 8/3/2022
6.0.0.36-beta 563 7/21/2022
6.0.0.35-beta 689 7/12/2022
6.0.0.34-beta 642 7/1/2022
6.0.0.33-beta 644 7/1/2022
6.0.0.32-beta 636 7/1/2022
6.0.0.31-beta 692 7/1/2022
6.0.0.30-beta 708 6/30/2022
6.0.0.29-beta 641 6/24/2022
6.0.0.28-beta 671 6/24/2022
6.0.0.27-beta 624 6/23/2022
6.0.0.26-beta 672 6/22/2022
6.0.0.25-beta 699 6/16/2022
6.0.0.24-beta 688 6/10/2022
6.0.0.23-beta 680 6/9/2022
6.0.0.22-beta 675 6/9/2022
6.0.0.21-beta 661 6/8/2022
6.0.0.17-beta 666 6/1/2022
6.0.0.16-beta 615 5/24/2022
6.0.0.15-beta 585 5/23/2022
6.0.0.14-beta 677 5/19/2022
6.0.0.13-beta 600 5/13/2022
6.0.0.12-beta 590 5/10/2022
6.0.0.7-beta 614 5/10/2022
6.0.0.6-beta 568 4/28/2022
6.0.0.5-beta 625 4/22/2022
6.0.0.4-beta 652 4/21/2022
6.0.0.3-beta 654 4/21/2022
6.0.0.2-beta 645 4/20/2022
6.0.0.1-beta 665 4/20/2022
6.0.0 1,485 9/21/2022
5.9.3 1,122 4/15/2022
5.9.2 1,030 4/15/2022
5.9.1 992 4/15/2022
5.9.0 1,038 4/15/2022
5.8.2 1,032 4/12/2022
5.8.1 997 4/11/2022
5.8.0 1,293 4/11/2022
5.7.1 1,061 4/8/2022
5.7.0 1,352 4/8/2022
5.6.0 1,062 3/29/2022
5.5.0 1,043 3/28/2022
5.4.0 1,338 3/28/2022
5.3.0 1,281 3/23/2022
5.2.7 1,030 3/21/2022
5.2.5 1,058 3/19/2022
5.2.4 996 3/19/2022
5.2.3 1,011 3/18/2022
5.2.2 969 3/18/2022
5.2.1 989 3/18/2022
5.2.0 986 3/17/2022
5.1.2 1,021 3/17/2022
5.1.1 1,058 3/17/2022
5.1.0 1,010 3/16/2022

Bug Fixes