Left, Right and Mid Functions in C#
If you have come to C# via Visual Basic then you may be missing the useful string functions of Left, Right and Mid.
C# Code Snippets – Short bits of code or functions that can be very useful.
If you have come to C# via Visual Basic then you may be missing the useful string functions of Left, Right and Mid.
If you need to make sure that the current URL goes to HTTPS, then call this function.
How to Format a number as Currency in C#
Counting words in a string – simple method using C#
C# code to Get a Random Name for Test Purposes. Good for populating test records. Extend it for Firstnames, Surnames and job titles, etc.
Generate a Random Password String in C#
This gets the week number. Be careful as not all week numbers are the same! .NET/C#
Get the number of days since the Epoch date using .NET/C#
Get Web Base URL using .NET/C#. This gets the base URL of the web site you are running on.
Get First or Last Day of this Month using C#