In this example, i’ll show you How to get absolute value without Math.Abs function. In...
Archive - September 2020
Display Absolute Value in C#
In mathematics, the absolute value or modulus of a real number x, denoted |x|, is the non-negative...
C# Enum Examples
An enumeration, or enumerator list, declares a series of related constants, each with an integer...
Calculate Difference Between Two Dates in Days in C#
In this example, I’ll show you How to get the difference between two dates in days using C#...
C# Iterators, iterator blocks and data pipelines
Introduction LINQ to Objects is based on iterators. These have always been part of .NET, and indeed...
Generate Random Date in C#
In this example, I’ll show you How to generate a random date between Jan 1 1970 and the...
How to extract numbers from a string in C#
In this tutorial we will see how to extract numbers from a string using Regex.split in C #...
Simple Regular Expression Phone Number Validation in C#
In almost all cases, it is recommended to validate the user input for several reasons (security...
Division without using ‘/’ operator in C# Program
This program allows to simulate the operation of an integer division between 2 positive integers a...