Aoxe.Extensions
2024.2.4
See the version list below for details.
dotnet add package Aoxe.Extensions --version 2024.2.4
NuGet\Install-Package Aoxe.Extensions -Version 2024.2.4
<PackageReference Include="Aoxe.Extensions" Version="2024.2.4" />
paket add Aoxe.Extensions --version 2024.2.4
#r "nuget: Aoxe.Extensions, 2024.2.4"
// Install Aoxe.Extensions as a Cake Addin #addin nuget:?package=Aoxe.Extensions&version=2024.2.4 // Install Aoxe.Extensions as a Cake Tool #tool nuget:?package=Aoxe.Extensions&version=2024.2.4
Aoxe.Extensions
Aoxe.Extensions is a powerful C# library that provides a rich set of extension methods to enhance your development experience and boost productivity. Our goal is to simplify common programming tasks and make your code more readable and maintainable.
๐ Features
- ๐งฉ Extensive collection of extension methods for built-in C# types
- ๐ฏ Designed to reduce boilerplate code and improve readability
- ๐ง Easy to use with a fluent API design
- ๐ Comprehensive documentation and examples
- โก High-performance implementations
- ๐ Thread-safe operations where applicable
- ๐งช Thoroughly tested with high code coverage
๐ฆ Installation
Install Aoxe.Extensions via Clr:
PM> Install-Package Aoxe.Extensions
๐ง Usage
To use Aoxe.Extensions in your project, add the following using statement:
using Aoxe.Extensions;
๐ Examples
Aoxe.Extensiosn is based on the idea of fluent style, providing a huge number of extension methods to extend C#, thus making the C# language more readable.
// Exception handling
try
{
throw new InvalidOperationException("Outer",
new ArgumentException("Inner",
new NullReferenceException("Inmost")));
}
catch (Exception ex)
{
var inmostException = ex.GetInmostException();
Console.WriteLine($"Inmost exception message: {inmostException.Message}");
// Output: Inmost exception message: Inmost
}
// String extensions
string text = "Hello, World!";
Console.WriteLine(text.IsNullOrEmpty()); // False
Console.WriteLine(text.Truncate(5)); // "Hello..."
// Collection extensions
var numbers = new List<int> { 1, 2, 3, 4, 5 };
Console.WriteLine(numbers.IsNullOrEmpty()); // False
var evenNumbers = numbers.Where(n => n % 2 == 0);
Console.WriteLine(string.Join(", ", evenNumbers)); // 2, 4
// DateTime extensions
var date = DateTime.UtcNow;
Console.WriteLine(date.ToUnixTimeSeconds());
// Enum extensions
public enum Color { Red, Green, Blue }
var color = Color.Red;
Console.WriteLine(color.GetDescription());
// Numeric extensions
int number = 42;
Console.WriteLine(number.IsEven()); // True
These examples showcase potential usage of extension methods that might be included in the Aoxe.Extensions library. The actual implementation and available methods may vary, so it's recommended to refer to the official documentation or source code for accurate usage information.
[Source: https://github.com/AoxeTech/Aoxe.Extensions]
Thank`s for JetBrains for the great support in providing assistance and user-friendly environment for my open source projects.
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. 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. net9.0 is compatible. |
.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 was computed. |
.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
- System.Memory (>= 4.5.5)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (33)
Showing the top 5 NuGet packages that depend on Aoxe.Extensions:
Package | Downloads |
---|---|
Aoxe.Compressor.Abstractions
The abstractions for Aoxe.Compressor |
|
Aoxe.Extensions.Configuration.Flattener.Xml
The Aoxe Configuration flattener implement by Microsoft.Extensions.Configuration.Xml. |
|
Aoxe.Extensions.Configuration.Flattener.YamlDotNet
The Aoxe Configuration flattener implement by YamlDotNet. |
|
Aoxe.Extensions.Configuration.Flattener.NewtonsoftJson
The Aoxe Configuration flattener implement by Newtonsoft.Json. |
|
Aoxe.Extensions.Configuration.Flattener.Json
The Aoxe Configuration flattener implement by Microsoft.Extensions.Configuration.Json. |
GitHub repositories
This package is not used by any popular GitHub repositories.