Skip to content

an open source nuget package for work with strings in c# and .net core

Notifications You must be signed in to change notification settings

ashnoori11/StringExtentions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StringExtentions

An open source library for ease of working with strings.
This library is written statically and it is recommended to add it to the bottom layer of your program and then use it in other layers.

Install

PackageManager Console

PM> Install-Package StringExtentions_AshkanNoori -Version 1.0.0

.Net CLI

dotnet add package StringExtentions_AshkanNoori --version 1.0.0


How TO Use

using StringExtentions;

    public IActionResult Index(string param)
    {
        string result = "";

        if (param.HasValue()) result = param;

        // If we want to ignore the WhitSpace in the submitted parameter
        if (param.HasValue(true)) result = param;

        return View(result);
    }

Others

string GenerateId(int numOfCharacter) 🤠
string GenerateId() :disguised_face:
string ToNumeric(this int value) 😎
string ToNumeric(this decimal value) 🤓
string ToCurrency(this int value) 🧐
string ToCurrency(this decimal value) 🤗
string CleanString(this string str) 😋
string ComparableStrings(this string text) 😜

💝 Dedicated with love to all programmers in the world _ Ashkan Noori 💝

About

an open source nuget package for work with strings in c# and .net core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages