c#

c#

C# program to convert a double to integer

How to convert a double to integer in C#. This program will use the Convert class to do the conversion of double to integer.

Read
c#

C# program to get the DateTime for the start of the week

How to get the DateTime for the start of the week in C#. Learn how to do this in different timezones.

Read
c#

C# program to get the first N characters of a string

C# program to get the first n characters of a string. We will use String.Substring method in this example program.

Read
c#

C# program to find the circumference of a circle

C# program to find the circumference of a circle. We will learn two different ways to find the circumference.

Read
c#

C# isNullOrEmpty method explanation with examples

C# isNullOrEmpty method is used to check if a string is null or empty. Learn how to use isNullOrEmpty in C# with examples.

Read
c#

C# DivRem method explanation with examples

C# DivRem method is used to find the quotient and reminder of two numbers. Learn how to use DivRem with examples.

Read
c#

Introduction to for loop in C#

C# for loop explanation with examples. for loop is used to execute a code block for a given number of times.

Read
c#

C# program to get the OS version using Environment class

C# program to get the current OS version by using Environment class. We can read the OSVersion property to get the current OS version.

Read
c#

C# program to find the area of a triangle

Lean how to find the triangle area in C#. This post will show you two different ways to find the C# triangle area.

Read
c#

C# program to convert a string to byte array

C# program to convert a string to array of bytes. We will use the Encoding.ASCII.GetBytes method to do the conversion.

Read