YAEP 2.1.0

dotnet add package YAEP --version 2.1.0
                    
NuGet\Install-Package YAEP -Version 2.1.0
                    
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="YAEP" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YAEP" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="YAEP" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add YAEP --version 2.1.0
                    
#r "nuget: YAEP, 2.1.0"
                    
#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.
#:package YAEP@2.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=YAEP&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=YAEP&version=2.1.0
                    
Install as a Cake Tool

YAEP

yaep

yet another extensions package is a collection of extension methods to increase code readability.

Install

Install-Package YAEP

Usage

s.IsNullOrEmpty();
s.EqualsIgnoreCaseCurrent() //CurrentCulture
s.EqualsIgnoreCaseInvariant() 
s.EqualsIgnoreCaseOrdinal()
s.Concat(new []{"1","2"})

var list = new List<Todo>();
list.IsNullOrEmpty();
list.IsNotEmpty()
list.AsReadOnly();
list.EmptyIfNull()

todo.IsNotNull();
todo.IsNull();
todo.DefaultIfNull(new Todo(Guid.Empty.ToString(), "--"));

obj.AsTaskFromResult() => returns Task<objType>

Note: the namespaces maches the namespace of the extended Type so you don't have to change your usings

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 218 12/25/2024
2.0.9 197 10/12/2024
2.0.8 133 10/12/2024
2.0.7 152 8/31/2024
2.0.6 2,503 2/12/2023
2.0.5 710 2/12/2023
2.0.4 830 12/11/2022
2.0.3 799 12/11/2022
1.0.0 130 8/31/2024
0.5.0 828 12/1/2022
0.4.0 1,458 12/11/2021
0.3.1 984 9/20/2021
0.3.0.1 839 9/20/2021
0.3.0 851 9/18/2021
0.2.0.2 1,304 1/4/2021