Jeylabs.ComparerCore 1.0.0

dotnet add package Jeylabs.ComparerCore --version 1.0.0
NuGet\Install-Package Jeylabs.ComparerCore -Version 1.0.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="Jeylabs.ComparerCore" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jeylabs.ComparerCore --version 1.0.0
#r "nuget: Jeylabs.ComparerCore, 1.0.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.
// Install Jeylabs.ComparerCore as a Cake Addin
#addin nuget:?package=Jeylabs.ComparerCore&version=1.0.0

// Install Jeylabs.ComparerCore as a Cake Tool
#tool nuget:?package=Jeylabs.ComparerCore&version=1.0.0

alternate text is missing from this package README image Jeylabs.ComparerCore (.Net Core)

The reusable package will compare a type of different instances according to the property and denote the mismatched properties as a list.

Target

The package targets .Net Core 1.0 or latest. you can install and use the package Jeylabs.Comparer on projects which are based on .Net Core

Usage

To start using reusable_timeline you can install it using nuget

  • If you are using "Nuget Package Manager Console" use the following command to install it

      Install-Package Jeylabs.ComparerCore -Version 1.0.0
    
  • If you are using ".NET CLI" use the following command to install it

      dotnet add package Jeylabs.ComparerCore --version 1.0.0
    
  • If you are using "Nuget Package Manager (GUI)" follow the steps which following gif showing.

alternate text is missing from this package README image

You must use the Jeylabs.ComparerCor namespace from the Jeylabs.ComparerCore package

using Jeylabs.ComparerCore;

Then you have to to pass the value to the params of AreEqual method of Comparer class

Your Code Look like following Example:

.

Jeylabs.ComparerCore;
using System;


namespace PackageTestComparerCore
{
    class Program
    {
        static void Main(string[] args)
        {
            A a1 = new A { Id = 2, Name = "Test" };   // Create Instance of class A as Object to Compare
            A a2 = new A { Id = 2, Name = "Test1" };  // Create Instance of class A as Object to Compare            
            
            string[] ignore = { "b" };// You can ignore the properties wich are not wish to compare

            ComparisonResult result = Comparer.AreEqual(a1, a2, ignore); // Call the Method and store the result.

            // Note : Here ComparisonResult class is a member of "Jeylabs.ComparerCore" package it stores the reult of Comparision
            // Also result contains List of mismatched parameter Names and status of AreEqual as boolean.

            Console.ReadLine();
        }
    }

    public class A
    {
        public int Id { get; set; }

        public string Name { get; set; }

        public B b { get; set; }


    }

    public class B
    {
        public int Id { get; set; }

        public string Name { get; set; }          


    }
}


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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.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
1.0.0 512 6/20/2019

Initial release of the Jeylabs.Comaprer package. it targets to .NetCore Platform