Skip to content

Category Archives: C# Programs

In C#, a delegate is an object which refers to a method or it is a reference type variable that can hold a reference to… Read More
Given a directory, now our task is to check given directory exists or not. So to this task, we use the Exists() method of the… Read More
Given a directory(empty or non-empty), now we have to delete the given directory. Here, an empty directory means the directory is present without any files… Read More
Sin(x) is also known as Sine. It is a trigonometric function of an angle. In a right-angled triangle, the ratio of the length of the… Read More
Given a string s1 and a string s2, write a snippet to say whether s2 is a rotation of s1? (eg given s1 = ABCD… Read More
Given an array that contains a list of different courses like “DSA”, “OS”, “JavaScript”, etc., now our task is to check the length of all… Read More
A pointer is a variable that contains the references of another variable. Or in other words, the pointer is a variable that stores the address… Read More
Given a directory, now our task is to find the path of the given directory or current directory. So to this task, we use the… Read More
Enum or also known as Enumeration is used to store user define data. It is used to assign the string value to an integral constant… Read More
LINQ is known as Language Integrated Query and was introduced in .NET 3.5. It gives power to .NET languages to generate or create queries to… Read More
Given an array, now our task is to find the index value of the even numbers present in the given array using LINQ. LINQ is… Read More
Serialization is a method of converting an object into a stream of bytes that will be used to store the object in the database, or… Read More
The interface is just like a class, it can also have methods, properties, events, etc. as its members, but it only contains the declaration of… Read More
Given an array, now our task is to get a comma-separated string from the given array. So we can do this task using String.Join() method.… Read More
In programming languages, nested means a class or a method or loop or structure is present inside another class or a method or loop or… Read More

Start Your Coding Journey Now!