SmartCalc 1.0.3

dotnet add package SmartCalc --version 1.0.3
                    
NuGet\Install-Package SmartCalc -Version 1.0.3
                    
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="SmartCalc" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SmartCalc" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="SmartCalc" />
                    
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 SmartCalc --version 1.0.3
                    
#r "nuget: SmartCalc, 1.0.3"
                    
#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 SmartCalc@1.0.3
                    
#: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=SmartCalc&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=SmartCalc&version=1.0.3
                    
Install as a Cake Tool

SmartCalc 😎

SmartCalc is a class library for simple mathematical operations.

Installation

  1. Install Visual Studio 2022 for Windows with a .NET Core-related workload.
  2. You can install the 2022 Community edition for free from visualstudio.microsoft.com, or use the Professional or Enterprise edition.

Prerequisites

  1. An understanding of C# and NuGet Packages
  2. Visual Studio

Usage

You can install this NuGet package into any .NET project if that package supports the same target framework as the project. To use SmartCalc in your project, kindly follow these steps:

Installation using Visual Studio
  1. In the Solutions Explorer of your project, Right-click on project dependencies

  2. Select manage Nuget packages

  3. From the Browse tab, search for SmartCalc, select it in the list, and then select Install.

To install our package using the .NET CLI, run: dotnet add package SmartCalc --version 1.0.1
  1. In your project, simply instantiate the operations class before usage.

Sample

This is a sample of a mathematical operation in the package:

public int Addition(int a, int b)
        {
            return a + b;
        }      

Each method takes in two (2) parameters of type int and returns a value of type int too.

Demonstration

namespace CalcutexDemoLibraryClient
{
    internal class Program
    {
        static void Main(string[] args)
        {

            Operations operation = new Operations();
            var result =  operation.Subtraction(10, 5);
            Console.WriteLine(result);
            var result2 = operation.Addition(10, 5);
            Console.WriteLine(result2);
            var result3 = operation.Multiplication(10, 5);
            Console.WriteLine(result3);
            var result4 = operation.Division(10, 5);
            Console.WriteLine(result4);
            var result5 = operation.Modulus(10, 4);
            Console.WriteLine(result5);
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET 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 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.  net9.0 was computed.  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.
  • net7.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.3 426 1/18/2023
1.0.1 493 1/16/2023
1.0.0 411 1/15/2023