C# File I/O

Files are used to store the data permanently in the storage device with a specific name and path. And when we open the file in order to read or write, it becomes a stream. File Handling refers to the various …

Read moreC# File I/O

C# throw keyword

We have already discussed the exception handling in C# and how to handle the exception if one exists. The exception discussed are raised by the CLR automatically, now we will see how we can manually raise an exception. In C#, …

Read moreC# throw keyword

C# Strings

In C#, String is the series of characters or array of characters that represents a text. It is of a reference type (Object) in c#. Various operations are performed on a string such as concatenation, comparison, getting substring, search, trim, …

Read moreC# Strings

C# Polymorphism

Polymorphism means having many forms. The word “poly” means many and “morphs” means form. Polymorphism is one of the core principles of object-oriented programming which means it is the way of performing some task in many ways. With polymorphism, a …

Read moreC# Polymorphism

C# Properties

C# properties are the class members that provide a flexible way for the class to expose its private field. It provides a way to read, write, and perform some computation to the private fields of the class. These properties have …

Read moreC# Properties