Functions associated with c#

IsStringEmpty() - A Replacement for String.IsNullOrEmpty

IsStringEmpty is a replacement function in C# for String.IsNullOrEmpty(). The function returns true if the text passed in does not contain any characters unlike the .Net function String.IsNullOrEmpty() which returns true only if the object is null or zero

OverwriteConsoleMessage() - Update and Overwrite Console Text

OverwriteConsoleMessage function updates a piece of text in a console application without clearing the screen or writing onto a new line.

TransformXMLWithXSLText() - Render XSL direct from XML Text in C#

Transform XML data directly from XSL data directly to html or other formats without requiring data be in files

IsNumeric() - Test if String is Numeric in C#

IsNumeric is a C# function that tests a string to determine whether it contains a numeric value

AddUrlSeperator() – A Safe way to Build Urls

AddUrlSeperator is a C# function that appends a forward slash to a url or parts of a url. The function ensures that the final url is build correctly.

CookieExists() – Check If Cookie Exists in Asp.Net

CookieExists is a C# function that checks whether a specified cookie exists within the cookies collection on a an Asp.Net request

RemoveCookie() - Remove Cookie in Asp.Net and C#

RemoveCookie is an Asp.Net function written in C# to remove a cookie from the Asp.Net cookies collection

CreateCookie() – Write Cookies in Asp.Net and C#

CreateCookie is a C# function that allows you to save cookies in Asp.Net making it easy to add or write cookies to the asp.net response

ReadCookie() – Read Cookie in Asp.Net and C#

ReadCookie() is an Asp.Net function written in C# which allows you to easily read the contents of an Asp.Net cookie

SendEmail() – Create and Send Email Messages in C#

The SendEmail function is written in C# and can be used to quickly create and send email messages using the SmtpClient in .net

SerializeObjectToXML() – Save C# object as XML Text

SerializeObjectToXML is a C# function serialize a C# class to an XML string

DeserializeXMLToObject() – Load C# object from XML

DeserializeXMLToObject is a C# function which loads a C# object directly from and XML string containing details of the serialized object

StringToBytes() – Convert string to Byte Array in C#

StringToBytes is a function written in C# that converts a string to a byte array

BytesToString() – Convert a Byte Array to a String in C#

BytesToString is a C# function that converts a byte array into a string

Read Ajax POST Parameters in Asp Net

Extract POST parameters from jquery ajax request in Asp.Net and C# with ExtractPostParameters()

FormatOrdinalNumber() – Convert Number to Ordinal like 1st,2nd,19th in C#

Convert any number to ordinal equivalent in C# e.g. 1st, 2nd, 3rd

SplitTextByWord() – Split Text by Words and not Character Arrays in C#

Split text strings by complete words rather than character arrays in C#

Randomly Shuffle Contents of any IList in C#

The Shuffle() function is an extension method that allows you to shuffle any C# List object and randomly reorder the contents.

GetDayName() - Get the Name of a Day for any Date in C#

Get the name of any day from the date in C# using the GetDayName() function

GetMonthName() - Get the Month Name based on Month Number in C#

Gets the name of any month based on it’s number e.g. 1 is January and 12 is December


Follow ByteChaserIT on Twitter