How to convert a double to integer in C#. This program will use the Convert class to do the conversion of double to integer.
ReadHow to get the DateTime for the start of the week in C#. Learn how to do this in different timezones.
ReadC# program to get the first n characters of a string. We will use String.Substring method in this example program.
ReadC# program to find the circumference of a circle. We will learn two different ways to find the circumference.
ReadC# isNullOrEmpty method is used to check if a string is null or empty. Learn how to use isNullOrEmpty in C# with examples.
ReadC# DivRem method is used to find the quotient and reminder of two numbers. Learn how to use DivRem with examples.
ReadC# for loop explanation with examples. for loop is used to execute a code block for a given number of times.
ReadC# program to get the current OS version by using Environment class. We can read the OSVersion property to get the current OS version.
ReadLean how to find the triangle area in C#. This post will show you two different ways to find the C# triangle area.
ReadC# program to convert a string to array of bytes. We will use the Encoding.ASCII.GetBytes method to do the conversion.
Read