Evanslib 1.3.8

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

NuGet page Github page

Versions

1.3.8

Added DebugMode in Evansmath

1.3.7

Re-worked FindX, also changed the name from PercentIncrease to PercentChange.

1.3.6

Changed to let user handle errors instead of crashing the program and handling it in the library.

1.3.5

Added PercentIncrease, can be found in the Math section

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

How to setup

Run the following command in the terminal of your folder

dotnet add package EvansLib

Then, enter "using evanslib;" in your code

How to import

To import Evanslib into your project, you can use the function of

using evanslib;

If you want to use Evansmath as well, you can use

using evansmath;

You can use both if you need to, however they work as their own thing, and will decrease compile times while making my life easier when coding this

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.

Debugging

Evanslib can help you figure out what is happening in your code. This debug mode is automatically set to true. To set it to false and get the straight numbers, you can run the following at the top of your code.

Evansmath.DebugMode = false;

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");

You can also do more complicated equasions, like

Evansmath.FindX("17x - 42 + 8x - 13 - 6x + 91 - 25x + 4 + 39x - 7 - 18 + 2x - 11 = 54x - 120 + 6 - 31x + 9x - 14");

PercentOf

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

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

PercentChange

To find the percent of increase or decrease of a gap between numbers.

Evansmath.PercentChange(OLDNUMBER, NEWNUMBER);

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();
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 97 2/26/2026
1.3.7 102 1/17/2026
1.3.6 101 1/7/2026
1.3.5 209 12/7/2025
1.3.4 181 11/28/2025
1.3.3 234 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