Encamina.Enmarcha.Core 8.1.3-preview-07

This is a prerelease version of Encamina.Enmarcha.Core.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Encamina.Enmarcha.Core --version 8.1.3-preview-07                
NuGet\Install-Package Encamina.Enmarcha.Core -Version 8.1.3-preview-07                
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="Encamina.Enmarcha.Core" Version="8.1.3-preview-07" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Encamina.Enmarcha.Core --version 8.1.3-preview-07                
#r "nuget: Encamina.Enmarcha.Core, 8.1.3-preview-07"                
#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 Encamina.Enmarcha.Core as a Cake Addin
#addin nuget:?package=Encamina.Enmarcha.Core&version=8.1.3-preview-07&prerelease

// Install Encamina.Enmarcha.Core as a Cake Tool
#tool nuget:?package=Encamina.Enmarcha.Core&version=8.1.3-preview-07&prerelease                

Core

Nuget package

Core is a project that primarily contains cross-cutting utilities that can be used in a wide variety of projects. Among them, there are utilities related to Uris, Strings, Attributes, JSON handling, and more.

Setup

Nuget package

First, install NuGet. Then, install Encamina.Enmarcha.Core from the package manager console:

PM> Install-Package Encamina.Enmarcha.Core

.NET CLI:

First, install .NET CLI. Then, install Encamina.Enmarcha.Core from the .NET CLI:

dotnet add package Encamina.Enmarcha.Core

How to use

Below are some of the most important utilities. It is not a complete list of all functionalities.

JsonUtils

JsonUtils contains a collection of static methods that provide utilities for JSON handling.

string json = "{\"Name\":\"John\",\"Age\":30,\"City\":\"Valencia\"}";

var deserializedObject = JsonUtils.DeserializeAnonymousType(json, new { Name = string.Empty, Age = 0, City = string.Empty });

The above code deserializes a string into an anonymous type, eliminating the need to create a class.

SdkVersionUtils

SdkVersionUtils is an utility class for the version information of the current assembly.

var version = SdkVersionUtils.GetSdkVersion("Program SDK Version: ", Assembly.GetAssembly(typeof(Program)));
// Program SDK Version: 6.0.3-16

UriExtensions

UriExtensions is an extension methods class for handling Uris.

var uri = new Uri("https://www.enmarcha.net/");

var newUri = uri.Append("acme", "products");
// newUri => https://www.enmarcha.net/acme/products

StringExtensions

StringExtensions is an extension methods class for handling strings.

var email = "enmarcha@email.com";

var isValidEmail = email.IsValidEmail();
// true

ObjectExtensions

ObjectExtensions is an extension methods class for handling objects.

var data = new { Name = "Siul", Age = 43, City = "Adarrefnop" };

var dictionary = data.ToPropertyDictionary();
// {Name, Siul}
// {Age, 43}
// {City, Adarrefnop}

IListExtensions

IListExtensions is an extension methods class for handling IList<T>.

IList<string> values = GetValues(); // Foo, Bar
var newNewValues = new[] { "FooBar", "BarFoo" };

values.AddRange(newNewValues);
// values =>  Foo, Bar, FooBar, BarFoo

IDictionaryExtensions

IDictionaryExtensions is an extension methods class for handling IDictionary<TKey, TValue>.

IDictionary<int, string> dictionary1 = new Dictionary<int, string>() { { 1, "one" }, { 2, "two" }, };

IDictionary<int, string> dictionary2 = new Dictionary<int, string>() { { 3, "three" }, { 4, "four" }, };

dictionary1.Merge(dictionary2);
// {1, one}
// {2, two}
// {3, three}
// {4, four}

ICollectionExtensions

ICollectionExtensions is an extension methods class for handling ICollection<T>.

ICollection<string> values = GetValues(); // Foo, Bar
var newNewValues = new[] { "FooBar", "BarFoo" };

values.AddRange(newNewValues);
// values =>  Foo, Bar, FooBar, BarFoo

EnumExtensions

EnumExtensions is an extension methods class for handling Enum types.

public enum TransportType
{
    [Description("Transport by Airplane")]
    Airplane,

    [Description("Transport by Car")]
    Car,

    [Description("Transport by Train")]
    Train,

    [Description("Transport by Bus")]
    Bus,

    [Description("Transport by Bicycle")]
    Bicycle
}

// ...

var currentTransport = TransportType.Airplane;

var airplaneDescription = currentTransport.GetEnumDescription();
// airplaneDescription => Transport by Airplane

CultureInfoExtensions

CultureInfoExtensions is an extension methods class for handling CultureInfo.

var currentCulture = new CultureInfo("es-MX");
var newCulture = new CultureInfo("es");

bool matches = currentCulture.MatchesWith(newCulture);
// matches => true

UriAttribute

UriAttribute provides 'Uri' validation.

public class MyClass
{
    [Uri(AllowsNull = false)]
    public Uri Uri { get; set; }
}

There are more extension methods, classes with extension methods, attributes, among others, available.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 (19)

Showing the top 5 NuGet packages that depend on Encamina.Enmarcha.Core:

Package Downloads
Encamina.Enmarcha.AI.QuestionsAnswering.Abstractions

Package Description

Encamina.Enmarcha.DependencyInjection

Package Description

Encamina.Enmarcha.AI.OpenAI.Abstractions

Package Description

Encamina.Enmarcha.SemanticKernel.Abstractions

Package Description

Encamina.Enmarcha.Email.Abstractions

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.2.0 1,080 10/22/2024
8.2.0-preview-01-m01 579 9/17/2024
8.1.9-preview-03 526 11/19/2024
8.1.9-preview-02 466 10/22/2024
8.1.9-preview-01 771 10/4/2024
8.1.8 1,287 9/23/2024
8.1.8-preview-07 1,085 9/12/2024
8.1.8-preview-06 810 9/11/2024
8.1.8-preview-05 629 9/10/2024
8.1.8-preview-04 985 8/16/2024
8.1.8-preview-03 690 8/13/2024
8.1.8-preview-02 561 8/13/2024
8.1.8-preview-01 587 8/12/2024
8.1.7 695 8/7/2024
8.1.7-preview-09 672 7/3/2024
8.1.7-preview-08 575 7/2/2024
8.1.7-preview-07 543 6/10/2024
8.1.7-preview-06 571 6/10/2024
8.1.7-preview-05 570 6/6/2024
8.1.7-preview-04 561 6/6/2024
8.1.7-preview-03 579 5/24/2024
8.1.7-preview-02 527 5/10/2024
8.1.7-preview-01 556 5/8/2024
8.1.6 1,963 5/7/2024
8.1.6-preview-08 550 5/2/2024
8.1.6-preview-07 575 4/29/2024
8.1.6-preview-06 1,161 4/26/2024
8.1.6-preview-05 632 4/24/2024
8.1.6-preview-04 613 4/22/2024
8.1.6-preview-03 567 4/22/2024
8.1.6-preview-02 702 4/17/2024
8.1.6-preview-01 690 4/15/2024
8.1.5 725 4/15/2024
8.1.5-preview-15 606 4/10/2024
8.1.5-preview-14 633 3/20/2024
8.1.5-preview-13 542 3/18/2024
8.1.5-preview-12 603 3/13/2024
8.1.5-preview-11 562 3/13/2024
8.1.5-preview-10 552 3/13/2024
8.1.5-preview-09 597 3/12/2024
8.1.5-preview-08 550 3/12/2024
8.1.5-preview-07 561 3/8/2024
8.1.5-preview-06 847 3/8/2024
8.1.5-preview-05 587 3/7/2024
8.1.5-preview-04 634 3/7/2024
8.1.5-preview-03 592 3/7/2024
8.1.5-preview-02 757 2/28/2024
8.1.5-preview-01 663 2/19/2024
8.1.4 996 2/15/2024
8.1.3 701 2/13/2024
8.1.3-preview-07 543 2/13/2024
8.1.3-preview-06 619 2/12/2024
8.1.3-preview-05 548 2/9/2024
8.1.3-preview-04 566 2/8/2024
8.1.3-preview-03 573 2/7/2024
8.1.3-preview-02 602 2/2/2024
8.1.3-preview-01 529 2/2/2024
8.1.2 774 2/1/2024
8.1.2-preview-9 560 1/22/2024
8.1.2-preview-8 515 1/19/2024
8.1.2-preview-7 518 1/19/2024
8.1.2-preview-6 498 1/19/2024
8.1.2-preview-5 534 1/19/2024
8.1.2-preview-4 523 1/19/2024
8.1.2-preview-3 507 1/18/2024
8.1.2-preview-2 685 1/18/2024
8.1.2-preview-16 505 1/31/2024
8.1.2-preview-15 548 1/31/2024
8.1.2-preview-14 665 1/25/2024
8.1.2-preview-13 515 1/25/2024
8.1.2-preview-12 549 1/23/2024
8.1.2-preview-11 561 1/23/2024
8.1.2-preview-10 532 1/22/2024
8.1.2-preview-1 488 1/18/2024
8.1.1 698 1/18/2024
8.1.0 645 1/18/2024
8.0.3 738 12/29/2023
8.0.1 643 12/14/2023
8.0.0 800 12/7/2023
6.0.4.3 731 12/29/2023
6.0.4.2 709 12/20/2023
6.0.4.1 700 12/19/2023
6.0.4 781 12/4/2023
6.0.3.20 733 11/27/2023
6.0.3.19 741 11/22/2023