PROWAREtech








.NET: Globally Unique Identifiers
GUIDs are very useful for many tasks on websites. Generate a unique cookie, record identifier, file name, prevent forms from being posted twice, etc...
string guid = System.Guid.NewGuid().ToString("N");
Dim guid As String
guid = System.Guid.NewGuid().ToString("N")
tutorial
.NET: About the System.Security.Cryptography Namespace
A general overview and explanation about hash, symmetric and asymmetric cryptography algorithms with examples available, like DES symmetric and RSA asymmetric algorithms; written in C#.
.NET: Add Comment to XML Document
Use the XmlSerializer and XmlDocument classes to add a comment to XML files; written in C#.
.NET: Convert Number to Binary String
How to convert a number such as an int, uint, long, ulong or other integer to a binary string using C#.
.NET: Create Process
Examples of creating processes using the System.Diagnostics.Process class in C# and VB.NET.
.NET: Download any Type of File Data from a URL with HttpClient
Download a file from an Internet URL/URI using the HttpClient class; written in C#.
.NET: Find Keywords in Text using Regex
How to find a keyword in text using C# and regular expressions.
.NET: Globally Unique Identifiers
The GUID is great for anything requiring uniqueness.
.NET: Hash-based Message Authentication Code
Safely store user passwords.
.NET: How to Create WordPress Slugs
Use C# regular expressions (Regex) to create slugs with only standard characters for use in a URL or other purpose.
.NET: Image Utility for SixLabors.ImageSharp
Manipulate images on Windows, Linux and MacOS machines including creating a histogram and rotating them as needed to display properly with a C# console application example.
.NET: Is a Number a Power of Two (2)
How to check or determine if a number has a base of 2 without using modulo operations for maximum performance; written in C#.
.NET: Join/Merge Two List, Array or Enumerable (IEnumerable) Objects
How to combine Lists, Arrays or Enumerables and, optionally, make them unique or distinct using C#.
.NET: Kill or End a Process
How to terminate a process using C#.
.NET: Mersenne Twister Random Number Generation
A popular Mersenne Twister pseudo random number generator example written in C#.
.NET: Multi-threading with Tasks
How to multi-thread using the Task class in C#.
.NET: Operating System Detection
How to detect if the operating system is Linux, MacOS or Windows using C#.
.NET: Power Status - AC/DC
How to detect the DC/battery operation or AC/plugged-in operation of the computer using C#.
.NET: Retrieve the Executable's Path and Directory
How to find the .NET executable's path and directory.
.NET: Strip/Remove HTML SCRIPT Tags from Text Using Regex
How to remove the SCRIPT tag and its containing code from HTML text using C# and regular expressions.
.NET: Strip/Remove HTML Tags from Text Using Regex
How to remove the tags from HTML text using C# and regular expressions.
.NET: Using Brotli to Compress and Decompress Data
How to use the BrotliStream class to compress and decompress bytes, files or streams of data in C#.
.NET: Using GZip to Compress and Decompress Data
How to use the GZipStream class to compress and decompress bytes, files and streams of data in C#.
.NET: What's New or Changed in C# 6
A guide to the changes and additions in C# version 6.
.NET: What's New or Changed in C# 7
A guide to the changes and additions in C# version 7.
.NET: Working with Arrays
How to sort and work with parallel arrays in C#.
.NET: Working with Dates
Working with the Date object and the TimeSpan object written in C#.
.NET: Working with Strings
The StringBuilder class versus String.Format() plus common formatting parameters for dates and numbers written in C#.
.NET: Working with Threads
How to use the Thread class in C#.
.NET: XmlSerializer Example
Serialize and deserialize objects to XML strings.