Skip to content

Category Archives: C# Programs

TimeSpan is a struct that is used to represent time interval which is used to measure the positive and negative number of minutes, hours, days.… Read More
TimeSpan is a struct that is used to represent time interval which is used to measure the positive and negative number of minutes, hours, days.… Read More
Given a float array, now our task is to check if all the elements present in the float array are greater than 5.0. So we… Read More
Given an array of integers, now we calculate the sum of array elements. So we use the Aggregate() method of LINQ. This method applies a… Read More
Given a list of employees, now we sort the list according to the salary in descending order and whose department is XYZ. So we use… Read More
LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives a feature to .NET languages to create queries to… Read More
LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It provides the ability to .NET languages to create queries to… Read More
Given a list of integers, now our task is to sort the given list of integers. So we use the OrderBy() method of LINQ. This… Read More
Given a list of string names, now our task is to sort the names given in the list using the OrderBy() method of LINQ. This… Read More
LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It provides the power to .NET languages to create queries to… Read More
Given a list of employees, now we sort the list of employees according to their salary using LINQ. So to this task, we use the… Read More
Given the data of employees, now our task is to check if all the employee salaries are less than 10000. So we use the All()… Read More
Given a list of employees, now our task is to sort the given list of employees based on salary and whose department is ABC using… Read More
Cosine(x) is also known as Cos(x). It is a trigonometric function of an angle. The ratio of the length of the base to the length… Read More
A directory is a file system that stores file. Now our task is to create a directory in C#. We can create a directory by… Read More

Start Your Coding Journey Now!