NETSimpleFunctions 1.0.2

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

How to install?

In Visual Studio

Step 1
  • Go to "Tools > NuGet Package Manager > Manage NuGet Packages for Solution"
Step 2
  • Go to "Browse" tab and search for "NETSimpleFunctions" and simply install the latest version

In Visual Studio Package Manager Console

dotnet add package NETSimpleFunctions --version [latest release version]

Note: Remove the brackets for version

Available methods

Check

HasNumbers

  • will check a String for a number
  • returns a boolean value
Check.HasNumbers("Sample text"); // returns false
Check.HasNumbers("Sample text 1"); // returns true

HasSymbols

  • will check a String for a symbol
  • returns a boolean value
Check.HasSymbols("Sample text"); // returns false
Check.HasSymbols("Sample text!"); // returns true

HasSpaces

  • will check a String for a space
  • returns a boolean value
Check.HasSpaces("Sample_text"); // returns false
Check.HasSpaces("Sample text"); // returns true

IsAValidPhilippineMobileNumber

  • will check a String if it is a valid Philippine mobile number
  • returns a boolean value
Check.IsAValidPhilippineMobileNumber("+15551234567"); // returns false
Check.IsAValidPhilippineMobileNumber("09171234567"); // returns true

Email.AddValidDomainName

  • adds a valid domain name to the list of valid domain names
Check.Email.AddValidDomainName("gmail");

Email.AddValidDomainExtension

  • adds a valid domain extension to the list of valid domain extensions
Check.Email.AddValidDomainExtension("com");

Email.AddValidDomain

  • adds a valid domain to the list of valid domains
Check.Email.AddValidDomain("gmail.com");

Email.ShouldUseFullDomain

  • sets the checker to use full domains or not
Check.Email.ShouldUseFullDomain();

// Or

Check.Email.ShouldUseFullDomain(true);

// Or

Check.Email.ShouldUseFullDomain(false);

Email.IsValid

  • checks a String if it is a valid email or not
  • will return false if the email domain is not listed in the valid domains
Check.Email.IsValid("test@gmail.com"); // returns true
Check.Email.IsValid("test@outlook.com"); // returns false
Check.Email.IsValid("test@asd.com"); // returns false

Convert

Reverse

  • will reverse a String
Convert.Reverse("Sample text"); // returns "txet elpmaS"

ToBase64

  • will convert a String to its Base64 version
  • returns a String
Convert.ToBase64("Sample text"); // returns "U2FtcGxlIHRleHQ="

FromBase64

  • will convert a Base64 String to its normal version
  • returns a String
Convert.FromBase64("U2FtcGxlIHRleHQ="); // returns "Sample text"

ToByteArray

  • will convert a String to a byte array
  • returns a byte array
byte[] byteArray = Convert.ToByteArray("Sample text");

FromByteArray

  • will convert a byte array to a String
  • returns a String
byte[] byteArray = Convert.ToByteArray("Sample text");
string temp = Convert.FromByteArray(byteArray);

SimpleFileHandler

Write

  • writes text to a file
SimpleFileHandler.Write("path/to/file.txt", "Sample text");

Read

  • reads text from a file
string text = SimpleFileHandler.Read("path/to/file.txt");

Append

  • appends text to a file
SimpleFileHandler.Append("path/to/file.txt", "Sample text 2");

ProjectToLocation

  • extract a file from the project to a given location
SimpleFileHandler.ProjectToLocation(Assembly.GetExecutingAssembly(), "SampleClass.cs");

// Or

SimpleFileHandler.ProjectToLocation(Assembly.GetExecutingAssembly(), "SampleClass.cs", "path/to/destination");
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.
  • net10.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.14 115 2/22/2026
1.0.13 103 2/22/2026
1.0.12 102 2/22/2026
1.0.11 104 2/22/2026
1.0.10 114 1/17/2026
1.0.9 114 1/15/2026
1.0.8 117 1/15/2026
1.0.7 116 1/14/2026
1.0.6 113 1/14/2026
1.0.5 109 1/14/2026
1.0.4 113 1/14/2026
1.0.3 117 1/12/2026
1.0.2 112 1/12/2026
1.0.1 118 1/11/2026
1.0.0 116 1/11/2026