Evanslib 1.3.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Evanslib --version 1.3.4
                    
NuGet\Install-Package Evanslib -Version 1.3.4
                    
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="Evanslib" Version="1.3.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Evanslib" Version="1.3.4" />
                    
Directory.Packages.props
<PackageReference Include="Evanslib" />
                    
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 Evanslib --version 1.3.4
                    
#r "nuget: Evanslib, 1.3.4"
                    
#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 Evanslib@1.3.4
                    
#: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=Evanslib&version=1.3.4
                    
Install as a Cake Addin
#tool nuget:?package=Evanslib&version=1.3.4
                    
Install as a Cake Tool

Evan's Library to C#

Evanslib for C# is a great, more user-friendly way to code in C# The github will be more updated than the NuGet page, may be unstable or crash. Next version is being worked on and will include 'FindX' and 'FindMultiX' functions. These can find a missing value in an equasion. FindX is in the 1.2.1-pre and FindMultiX still doesn't work. If a version is skipped, there was an issue with it.

Versions

1.3.4

Fixed errors with PercentOf

1.3.3

Added PercentOf, which can be found in Math

1.3.2

Added FindX and FindMultiX functions, check Math for more info

1.2.0

Added "Evansmath" which is in the Math section and can be found later in README

1.1.4

Changes how times work, now more optimised

1.1.2

Time and date functions now work differently (go to the "Time" section), and the name of the dictionary ammending changes slightly so it fits with the pattern of all other naming

1.1.1

In Evanslib version 1.1.1, error numbers are integers and no longer strings

1.1.0

Default benchmark, goes up to version 1.1.2

Commands

Here you will see a list of all the commands in Evanslib

Quality of life improvements

Some functions to save you a bit of work

Print

The print function is exactly as it sounds. It prints. Here is an example of the command

Print("STRING"); (Can use a string or int)

Input

This also takes an input, but you call it a bit differently than the print function.

string/int VARNAME = Evanslib.Input();

Time

Here are some functions for calling time (you can only print for now)

Current Date

This function displays the current date (by the system) in the terminal

var VARNAME = Evanslib.date();
Evanslib.Print(VARNAME);

Current Time (Military time [24 hour time])

Displays the 24 hr time in terminal

var VARNAME = Evanslib.timeMT();
Evanslib.Print(VARNAME);

Current Time (12 hour time)

Displays the 12 hr time in terminal

var VARNAME = Evanslib.timeUT();
Evanslib.Print(VARNAME);

Current Month

Displays the 3 letter code for the month

var VARNAME = Evanslib.month();
Evanslib.Print(VARNAME);

Current Date and Time

Displays the 12 hr time and date in terminal

var VARNAME = Evanslib.dateTime();
Evanslib.Print(VARNAME);

Dictionary functions

The Evanslib dictionary is easy to learn, in contrast to c#'s and its quick and easy

Creating a dictionary

To create a dictionary, call

var DICTIONARYNAME = Evanslib.Dict(); (Creates a dictionary w whatever name you assign)

Adding to dictionary

To add a name and value to the dictionary, call

Evanslib.modifyDict(DICTIONARYNAME, "NAME", "VALUE"); (Creates an entry in the dictionary with a name and value, outputs "NAME: VALUE")

Math

Evansmath is an easy and basic math system. This will be updated more later on but it's a good place to start

Adding

To add, you would

Evansmath.Add(NUM1, NUM2);

Subtracting

To subtract

Evansmath.Subtract(NUM1, NUM2);

Multiplying

To multiply,

Evansmath.Multply(NUM1, NUM2);

Dividing

Finally, to divide

Evansmath.Divide(NUM1, NUM2);

FindX

You can now find the value of 'x'. You can add, subtract, multiply, or divide.

Evansmath.FindX("x + 12 = 14");

FindMultiX

You can solve a problem like ax + b = cx + d, but any kind of sign works.

Evansmath.FindMultiX("2x + 3 = 8x - 11");

PercentOf

You can find the percent value of a number with the following code.

Evansmath.PercentOf("X% of Y");

Errors

Calling an error, exiting with an error, or exiting all together, it's easy with Evanslib

Calling an error

To call an error, call

Error("ERROR", ERROR_NUMBER);

Exiting with an error

In the case you need to exit with an error, call

exitError("ERRORMESSAGE", ERROR_NUMBER);

Exiting

If you would like to exit altogether, you can call

Exit();

How to setup

Run the following command in the terminal of your folder (can go up to 1.1.2)

dotnet add package EvansLib --version 1.1.0

Then, enter "using Evanslib;" in your code

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
1.3.8 102 2/26/2026
1.3.7 104 1/17/2026
1.3.6 103 1/7/2026
1.3.5 209 12/7/2025
1.3.4 182 11/28/2025
1.3.3 235 11/22/2025
1.3.2 400 11/19/2025
1.3.1 403 11/19/2025
1.3.0 399 11/19/2025
1.2.1-pre 151 11/15/2025
1.2.0 189 11/15/2025
1.1.4 211 11/3/2025
1.1.3 128 10/11/2025
1.1.2 193 9/28/2025
1.1.2-updated.readme 134 9/29/2025
1.1.1 177 9/24/2025
1.1.0 193 9/22/2025
1.0.3 236 9/21/2025
1.0.2 186 9/21/2025
1.0.1 165 9/21/2025
Loading failed