Category

CSharp Tutorial

64 posts

.Net Framework

.Net is a software development platform developed by Microsoft. It was meant to create applications, which would run on a windows platform. The first beta version was released in 2000. Although C# is a computer language that can be studied on its own, it has a special relationship to its runtime env

August 18, 2021Read more →

C# DirectoryInfo Class

In C#, DirectoryInfo Class is a part of System.IO namespace and it provides properties and methods to perform various operations on directory and subdirectory such as to create, delete and move directory. It cannot be inherited. C# DirectoryInfo Properties The following tables list the properties pr

August 17, 2021Read more →

C# FileInfo Class

In C#, FileInfo class provides properties and instance methods that are used to deal with the various operations in a file such as creating, copying, deleting, moving, etc. It is derived from FileSystemInfo class and is a part of System.IO namespace. C# FileInfo Properties The following are some of

August 17, 2021Read more →

C# BinaryReader and BinaryWriter

BinaryReader and BinaryWriter are the classes that are used to read and write into a binary file. These are just like C# StreamReader and StreamWriter except here we read and write to a binary file. C# BinaryReader class This class in C# is used to read binary information from a file. This class is

August 17, 2021Read more →

C# StreamReader and StreamWriter

StreamReader and StreamWriterare classes are inherited from the base class Stream, these classes are used to read and write from a file. You may go through the File I/O. C# StreamReader Class The StreamReader class inherits from TExtReader class. It is used for reading data from a file. The most use

August 16, 2021Read more →

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 operation that can be performed on a file such as reading from a file, writing … Read

August 16, 2021Read more →

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#, we use the keyword ‘throw’ in order to throw an exception prog

August 14, 2021Read more →

C# Exception Handling

An exception is an event that occurs during the execution of the program i.e. during run–time. This event is unexpected, not known by the program, and disrupts the normal flow of the code. So to handle such errors, we create an exception handler code which will be executed when it finds an exc

August 14, 2021Read more →

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, replacement, etc. It is a reference type. It’s immutable

August 13, 2021Read more →

C# Inheritance and its Types

Inheritance is an important pillar for the foundation of Object-Oriented Programming (OOP). It is a process in C# through which one class can acquire the fields and methods of another class. Inheritance allows us to inherit or acquire the features of the parent class to the child class so that we ca

August 11, 2021Read more →